Tooltip Font

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

I'm writing a program where I have to draw custom tooltips onto a control
through OnPaint. I've figured out how to get the text color and the box
color (KnownColor.InfoText and KnownColor.Info), but I can't find anywhere
how to figure out what the font is. I've looked through the WinAPI and
others...maybe I'm just missing it, I dunno. Seems like it should be there
somewhere, though.

(These are what the user would set through the display settings in Windows.)

Thanks in advance for any help.
 
Hi Mike,

Take a look at the SystemFonts class.

Also of interest may be the SystemColors, SystemPens, SystemBrushes and SystemIcons classes. There is also a
System.Media.SystemSounds class in the 2.0 framework, which I have found useful.
 
Wow, perfect. You know, I thought I had tried that yesterday but maybe I was
trying something like System.Font.

Anyway, that worked. Tooltip fonts are under SystemFonts.StatusFont.
Thanks very much for the help!
 
Back
Top