Board index » delphi » Font of the ToolTip text

Font of the ToolTip text

Hi!

In my application, the ToolTip text is displayed in a font different from
the usual windows application ToolTip font. I am running on Chinese Win95.
Is there any way to control the font of the ToolTip Text?

 

Re:Font of the ToolTip text


The THintWindow uses a font of MS Sans Serif 8 pt. If this is not present
on your system it will get a replacement font from Windows with results
ranging from unsatisfactory to disastrous <g>.

You can this:

Derive a new class from THintWindow, override the Create constructor, in
the constructor first call inherited create and then set the controls
Canvas.font to what you would like it to use. Assign this new hint window
class to the Form.HintWindowClass variable. Do this fairly early, e.g. in
the Initialization section of your main unit.

Peter Below (TeamB)  100113.1...@compuserve.com)

Other Threads