Thread: Add Hints to Items

  1. #1
    Registered User Penguin of Oz's Avatar
    Join Date
    Dec 2002
    Posts
    16

    Add Hints to Items

    This has probably been asked many times before, but I was wondering if anybody could enlighten me as to which function can be used to assign a hint/tool-tip to anything on a dialog box.

    Thank you.
    "I don't think there's anything else I can do... my shoes are tied"

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    There are several solutions. Read one of these articles.

    Randy More's
    http://www.codeproject.com/docking/d...g_tooltips.asp
    http://www.codeguru.com/toolbar/disp...tooltips.shtml

    Kuphryn

  3. #3
    Registered User Penguin of Oz's Avatar
    Join Date
    Dec 2002
    Posts
    16
    Thanks for your reply...

    However, is there anything for Win32 C (C++ is icky ) and is there a way to assign a tool-tip to something other than an item located in a toolbar? For example, a command button on a dialog, or a radiobutton.
    "I don't think there's anything else I can do... my shoes are tied"

  4. #4
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Good questions. I have never tried it. However, I know it is possible even if you end up having to create a temporary window with the tool-tips (for buttons, window, etc).

    I remember John Swanke mentioned it in his book, but I have not absolutely sure. I do not have access to it right now.

    Kuphryn

    P.S. I recommend VC++ MFC Extensions by Example by John E. Swanke.

  5. #5
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    If using MSVC and the resource editor.

    You can create a status bar, then under the menu items created in the resource editor there is a'prompt' edit. this text will be displayed in the 0 (first) cell of the status bar when the mouse is over the item.

    You can add other contorls in your callback by tracking mouse moves and sending a SB_SETTEXT in SendMessage().
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  6. #6
    Registered User Penguin of Oz's Avatar
    Join Date
    Dec 2002
    Posts
    16

    Excellent

    Both of you: thank you ever so much!

    I never thought of putting the text into a status bar before, but it seems an excellent solution and would probably be less annoying that hints popping up.

    I'll be sure to mention your names in the program.
    "I don't think there's anything else I can do... my shoes are tied"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. ListView controls - Adding items .. What the beep?
    By IceDane in forum Windows Programming
    Replies: 7
    Last Post: 04-08-2008, 12:07 PM
  2. Retail Outlet Managment System - the 4th
    By Presidentofusa in forum C Programming
    Replies: 3
    Last Post: 11-10-2007, 10:44 PM
  3. Help needed Please
    By jereland in forum C Programming
    Replies: 9
    Last Post: 03-18-2004, 05:30 AM
  4. Can somebody test this code please
    By andy bee in forum C Programming
    Replies: 6
    Last Post: 10-09-2001, 03:08 PM