Results 1 to 8 of 8

Thread: Tool-Tips, sorta

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2000
    Posts
    208

    Question

    Hi all . . .

    I'd like to make a sort of tool tip for my form.

    Only they really aren't tool tips. Instead of showing up when the user hovers over a control with the mouse, I'd like them to show when a textbox gets focus.

    As as sort of aid to help the user fill in a form (the user would also have the option of turning these on and off).

    I'm working now with an invisible form with a label, which shows my tool tip . . . but it's sorta difficult, and I didn't know if anyone else has a better suggestion . . . ?

    Thanks in advance,

    Elizabeth

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    If Search was working I'd refer you there but since it isn't the only thing I can think of is that I believe that Aaron Young some time ago posted a solution. You might contact him directly.

    If you are using the form-method just so that you can turn the tooltips off and on, the you might consider storing the tooltip text in an array or in a res file. You can then set all tooltips to "" when you want to "turn them off" and reload them when needed.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2000
    Posts
    208
    Marty -- okay, thanks.

    Here's the code that I've got already . . .

    Only instead of showing the form when you hover over something with the mouse, I want to show it with GetFocus.
    Attached Files Attached Files

  4. #4

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2000
    Posts
    208
    Yup, I got that far.

    What I'm having trouble with is setting the x and y coordinates.

    Instead of getting them from the cursor position, I need to get the from the control with the focus.

    Currently I'm trying to pass some parameters when I make the call to DisplayHelp for x and y.

    But maybe there is a cool API way to do this, I don't know, I don't know much about APIs.

  6. #6

  7. #7

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Oct 2000
    Posts
    208
    Marty -- Wonderful! Thanks!!!

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