Page 1 of 1

[SOLVED] Tooltip for whole window?

Posted: Mon Mar 10, 2025 8:04 am
by Randy Walker
I love this tooltip style RASHAD gave in this post:
https://www.purebasic.fr/english/viewto ... 77#p342977
But Is there some way To get that tooltip to appear when the mouse enters any region of the window and not just on the Button?

Re: Tooltip for whole window?

Posted: Mon Mar 10, 2025 9:02 am
by BarryG
Just put "AddTip(WindowID(0)" in addition to "AddTip(GadgetID(0)". Then both the gadget and window will show the tip. :)

Re: Tooltip for whole window?

Posted: Mon Mar 10, 2025 9:24 am
by Randy Walker
BarryG wrote: Mon Mar 10, 2025 9:02 am Just put "AddTip(WindowID(0)" in addition to "AddTip(GadgetID(0)". Then both the gadget and window will show the tip. :)
YES!!! That works perfectly. Thanks BarryG!!!! :!: :!: :!:

Re: [SOLVED] Tooltip for whole window?

Posted: Mon Mar 10, 2025 10:05 am
by BarryG
In case you don't know: both GadgetID() and WindowID() are just the gadget and window handles (hWnd).

Re: [SOLVED] Tooltip for whole window?

Posted: Mon Mar 10, 2025 7:22 pm
by Randy Walker
Yes I understood that. Just didn't occur to me I could substitute.
Thanks for the clarification BarryG :)