×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Combobox tooltiptext question

Combobox tooltiptext question

Combobox tooltiptext question

(OP)
Hi,
It is possible to display a different font than the default font to the tooltiptext content ?

example i have this code in the combobox init,i would like the text below the line "TEXT TO lcText NOSHOW" to be shown in a little big in size and bold", it is anything that can accomplish it ?
Thanks in advance

CODE -->

LOCAL lcText
TEXT TO lcText NOSHOW 
Non serial#s Meaning
89736 = R&D

89741 = Misc Assembly

89744 = Sample print

89760 = Ptod

13100 = Standards

60400 = Jury Duty

60500 = Holiday

60600 = Bereavement

65600 = Maintenance
ENDTEXT 
this.ToolTipText = m.lcText 

RE: Combobox tooltiptext question

From the help file:

Quote:


SYS(3007) - ToolTipText Property Font Language Script

Specifies a font language script for the text that appears as a ToolTip for a control.


SYS(3007 [, nFontCharSet])



Parameters
nFontCharSet
Specifies a font language script for the text that appears as a ToolTip for all controls. The ToolTip text is specified with the ToolTipText Property.

See the GETFONT( ) Function for a list of available language font script values.

Return Value
Character. If the nFontCharSet parameter is omitted, SYS(3007) returns the current font language script setting.



Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: Combobox tooltiptext question

Hi Landfla,

I'm not familiar with Griff's solution, but it would be worth your following it up.

That said, my understanding is that it is only possible to change the tooltip font at the Windows level. How you do that depends on which version of Windows you are using. In general, you would go to Control Panel, open Display properties, then go to Appearance or Change Settings or something similar, and then look for Advanced Appearance. You should then see a setting for Tooltips that lets you specify the font, font size, style, foreground colour and background colour (again, these details might vary with the Windows version).

However, keep in mind that these are system-wide settings. I don't know if they can be changed programmatically, but in any case it would not be considered desirable to do so. The Display settings are the user's personal choice, and it is not the job of application programs to override that.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: Combobox tooltiptext question

(OP)
Thanks Mike, make sense

RE: Combobox tooltiptext question

There is, of course, another approach. You could ignore the built-in tooltip feature and create your own instead. Basically, all you need is a border-less form which you make visible when the user moves the mouse into the relevant control. You can put any text (or even images) that you like on the form, using whatever colours and fonts take your fancy.

I use this approach myself. I described it in a little more detail in the post dated 7 Jan 18 15:44 in thread184-1783448: Form Class.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: Combobox tooltiptext question

I think Mike is right
The 3007 function seems to refer to the 'script' of the tooltip font - European, Cryllic, Hebrew stuff like that, but it made no difference on
my machine anyway!

Regards

Griff
Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

RE: Combobox tooltiptext question

(OP)
thanks Griff, i tried that last nite came out in Japanese, thanks Mike i think that is a very good idea, will try that

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close