Page 1 of 1

GadgetToolTip for TextGadget

Posted: Tue Feb 14, 2017 10:20 am
by Marc56us
:idea: Please add support GadgetToolTip for TextGadget (if possible)

:arrow: Goal: for example, add fast translation or help for a label or long text when space for text is too short.

Thanks.

:wink:

Re: GadgetToolTip for TextGadget

Posted: Wed Feb 15, 2017 10:42 am
by Dude
A big +1 for this request. It's just a simple matter of adding the #SS_NOTIFY style to the TextGadget's creation:

Code: Select all

OpenWindow(0,200,200,200,50,"test",#PB_Window_SystemMenu)

tg=TextGadget(0,10,10,180,20,"Hover over me for a surprise!")
SetWindowLongPtr_(tg,#GWL_STYLE,GetWindowLongPtr_(tg,#GWL_STYLE)|#SS_NOTIFY)
GadgetToolTip(0,"Why, hello there, Mr Fancy Pants!")

Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow

Re: GadgetToolTip for TextGadget

Posted: Wed Feb 15, 2017 11:41 am
by netmaestro
It's just a simple matter of adding the #SS_NOTIFY style
Agreed, on Windows. But whether or not the team adds something often depends on what's involved in making it work on the other OS's, likely resulting in no feature if it can't be done on all 3 easily. I hope this one makes the cut as it would be a good thing.