Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2006

Tip: Looking for answers? Try searching our database.

Tooltip Font

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 10 Aug 2006 22:36 GMT
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.
Dave Sexton - 11 Aug 2006 01:43 GMT
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.

Signature

Dave Sexton

> Hi all,
>
[quoted text clipped - 8 lines]
>
> Thanks in advance for any help.
Mike - 11 Aug 2006 17:17 GMT
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!

> Hi Mike,
>
[quoted text clipped - 15 lines]
> >
> > Thanks in advance for any help.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.