Re: Force a tooltip to appear in any control I want
- From: "JLuis Estrada" <freshnkool@xxxxxxxxxxx>
- Date: Sat, 26 Nov 2005 11:56:25 -0600
Tnx for all ur answers... Id found a lot of examples on the net talking
about how to display the tooltip over a control, Id I was expecting
something like an API like showtooltip (control.hwnd, X, Y, "message")...
hahahaha I guess I was expecting to much!!!!
But let me try the class example and I'll let you know what happened!
Regards
jluiis
"MikeD" <nobody@xxxxxxxxxxx> escribió en el mensaje
news:eiYtXBi8FHA.736@xxxxxxxxxxxxxxxxxxxxxxx
>
> "JLuis Estrada" <freshnkool@xxxxxxxxxxx> wrote in message
> news:OYM7fPg8FHA.3952@xxxxxxxxxxxxxxxxxxxxxxx
>> Hi!!!
>>
>> How can I force a tooltip to appear in any given control of my form?
>>
>> I mean, I got a button and a textbox. And if the user click the button,
>> I want to show a tooltip over the textbox with it own tooltiptext.
>
>
> You can't...at least not with VB's built-in support for tooltips. You
> could create your own ToolTip control using a lot of API. I'm pretty sure
> that you can specify a tooltip to show anytime you want. You can also do a
> lot more with tooltips than what VB supports. For example, you can have
> balloon tooltips (requires version 5.8 or later of comctl32,dll) and
> multiline tooltips. Here's a link to the documentation:
>
> http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/tooltip/tooltipintro.asp
>
> Hmm. In briefly looking over the documentation, maybe you *can't* show a
> tooltip on demand. There is a TTM_POPUP message, but it can only be used
> under WinXP or later and with the version 6 common control library (so
> you'd have to include a manifest file). If you don't need to support
> versions of Windows prior to WinXP, then I suppose you'd be OK.
>
> You might want to consider having a label below the textbox to which you
> assign help text or add a status bar to the form to which you could assign
> help text. I suppose there are ways you could fake a tooltip, perhaps with
> a picturebox that you just show for a short time.
>
> Personally, I think it'd be kind of annoying to click the button and have
> a tooltip pop up over the textbox.
>
> --
> Mike
> Microsoft MVP Visual Basic
>
>
.
- References:
- Force a tooltip to appear in any control I want
- From: JLuis Estrada
- Re: Force a tooltip to appear in any control I want
- From: MikeD
- Force a tooltip to appear in any control I want
- Prev by Date: Re: Help finding API
- Next by Date: Re: Help finding API
- Previous by thread: Re: Force a tooltip to appear in any control I want
- Next by thread: Re: Force a tooltip to appear in any control I want
- Index(es):