Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Colour of Tool Tip Boxes

Status
Not open for further replies.

KoenPiller

Programmer
Apr 4, 2001
270
NL
Hi,
Don't seem to be able to change the back colour of my Tool Tip Text Boxes from dull white into bright Yellow, anybody around to give me a clue?
Thanks
Koen
 
The color of your tool tips is controlled by the Windows Control Panel. Go to Desktop -> Appearance, pull down the "Item" combo box, and select "Tool Tips". Change the color from there.
 
Or course, if he doesn't want all toolptips to be the new color, he'll have to create his own ersatz tool-tip class. --DAVE
 
Hi Dave,
Your suggestion of making my own Ersatz Tool-Tip Class seems exactly what I need. Any clue how I should do this basicly?
Thanks for reply.
Koen
 
Before I'd do anything else, I'd got to the Universal Thread and see if someone has posted such a class. They have lots of free downloads there, so no use reinventing the wheel.

As for the thing itself it seems to be triggered by mousemove events and has a timer associated to end displaying it after a while. I suppose a sequence something like the following pseudocode would be used.

object.mousemove()
IF !TimerRunning
IF !TimedOut
Start timer [set TimerRunning = .t.]
mytooltip.text = this.tooltiptext
mytooltip.visible = .t.
ENDIF
ELSE
TimedOut = .f.
ENDIF
DODEFAULTS

and in the timer.timer event put
TimedOut = .t.
mytooltip.visible = .f.

This code isn't very complete or accurate, just a schematic of the sort of thing you need to work out in detail. Especially you need to figure out how to abort the timer when you move off an object.

Dave Dardinger
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top