Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / August 2007

Tip: Looking for answers? Try searching our database.

Lebans Tooltip : Change Default Font Size ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Guy - 20 Aug 2007 12:16 GMT
1. I need to increase the default Tooltip font size. Is this possible?

2. Also I would like to specify one of the icons to appear in the tooltip
using :
" ToolTip Icons (Set with TTM_SETTITLE)"

Only problem is - how do I use TTM_SETTITLE to do this?
I have tried : SendMessage(m_hwndTT, TTM_SETTITLE + TTI_WARNING, IcType,
ByVal sText)

but this does nothing.....

Thanks

Guy
Stephen Lebans - 22 Aug 2007 11:27 GMT
This functionality is exposed via the SetToolTipTitle method.
To set one of the predefined Icons:

'// ToolTip Icons (Set with TTM_SETTITLE)
Private Const TTI_NONE = 0
Private Const TTI_INFO = 1
Private Const TTI_WARNING = 2
Private Const TTI_ERROR = 3

TTip.SetToolTipTitle "Icon Test", 3

I think you need to reset the Icon back to none before the class is
destroyed in the Form's Unload event. With WinXP and higher, you can also
pass a handle to an Icon ( hIcon) instead of one of the constants.

To change the font you need to use the WM_SetFont message with hFont
returned via CreateFontIndirect(or similiar) API call. There are several
projects on my site that show you how to create a Font that can be used with
the WM_SetFont message. See the TabColors or RotateText samples.

Signature

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.

> 1. I need to increase the default Tooltip font size. Is this possible?
>
[quoted text clipped - 11 lines]
>
> Guy
 
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.