stuart
May 14th, 1999, 03:11 AM
How do I attach a Tool Tip to my toolbar?
Cheers,
Stu
Cheers,
Stu
|
Click to See Complete Forum and Search --> : Tool Tips...... stuart May 14th, 1999, 03:11 AM How do I attach a Tool Tip to my toolbar? Cheers, Stu Daren Chandisingh May 14th, 1999, 07:12 AM 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |