-
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
-
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.
-
1 Attachment(s)
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.
-
Here's a start. Remove "DisplayHelp "List Box"" from the code in Timer1 and put it in List1.GotFocus
-
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.
-
Attached is a solution. :)
-
-
Marty -- Wonderful! Thanks!!!