[SOLVED] Tooltip for whole window?

Just starting out? Need help? Post your questions and find answers here.
Randy Walker
Addict
Addict
Posts: 1109
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

[SOLVED] Tooltip for whole window?

Post 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?
Last edited by Randy Walker on Mon Mar 10, 2025 9:25 am, edited 1 time in total.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
BarryG
Addict
Addict
Posts: 4219
Joined: Thu Apr 18, 2019 8:17 am

Re: Tooltip for whole window?

Post by BarryG »

Just put "AddTip(WindowID(0)" in addition to "AddTip(GadgetID(0)". Then both the gadget and window will show the tip. :)
Randy Walker
Addict
Addict
Posts: 1109
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

Re: Tooltip for whole window?

Post 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!!!! :!: :!: :!:
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
BarryG
Addict
Addict
Posts: 4219
Joined: Thu Apr 18, 2019 8:17 am

Re: [SOLVED] Tooltip for whole window?

Post by BarryG »

In case you don't know: both GadgetID() and WindowID() are just the gadget and window handles (hWnd).
Randy Walker
Addict
Addict
Posts: 1109
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA

Re: [SOLVED] Tooltip for whole window?

Post by Randy Walker »

Yes I understood that. Just didn't occur to me I could substitute.
Thanks for the clarification BarryG :)
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Post Reply