|
-
May 14th, 1999, 03:11 AM
#1
Tool Tips......
How do I attach a Tool Tip to my toolbar?
Cheers,
Stu
-
May 14th, 1999, 07:12 AM
#2
Re: Tool Tips......
Are you creating a CToolbar object in code, or using the resource editor? If you're creating it in code, then add the CBRS_TOOLTIPS style to the CToolBar::Create() call (or SetBarStyle.
The tooltip itself is part of the prompt for the toolbar buttons. You simply separate it from the command (status bar) prompt with a newline character, \n. You must ensure that your stringtable has an entry with the same ID as the toolbar buttons that you want to have display tooltips.
A typical stringtable entry for a toolbar button might be:
"Open a file\nOpen"
"Open a file" would be shown on the status bar (flyby) and "Open" as the tooltip.
--
Daren Chandisingh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|