CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Tool Tips......

  1. #1
    Join Date
    May 1999
    Location
    Scotland,UK
    Posts
    9

    Tool Tips......

    How do I attach a Tool Tip to my toolbar?


    Cheers,


    Stu


  2. #2
    Join Date
    Apr 1999
    Posts
    32

    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
  •  





Click Here to Expand Forum to Full Width

Featured