disabled, and all three gadgets have tooltips, then the Splitter's tooltip will be
shown for the disabled gadget's tooltip. Reproducable example:
Code: Select all
If OpenWindow(0, 0, 0, 230, 180, "SplitterGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If CreateGadgetList(WindowID(0))
#Button1 = 0
#Button2 = 1
#Splitter = 2
ButtonGadget(#Button1, 0, 0, 0, 0, "Button 1") ; No need to specify size or coordiantes
GadgetToolTip(#Button1, "1")
ButtonGadget(#Button2, 0, 0, 0, 0, "Button 2") ; as they will be sized automatically
GadgetToolTip(#Button2, "2")
DisableGadget(#Button2, #True) ; Comment this and ToolTips are correct.
SplitterGadget(#Splitter, 5, 5, 220, 120, #Button1, #Button2, #PB_Splitter_Separator)
GadgetToolTip(#Splitter, "Splitter")
TextGadget(3, 10, 135, 210, 40, "Above GUI [cut]",#PB_Text_Center )
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
EndIf
it, or at least show its correct tooltip ("2" instead of "splitter" in this example).