The following example shows the problem (Windows PB 4.20):
Code: Select all
If OpenWindow(0, 0, 0, 320, 160, "Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) And CreateGadgetList(WindowID(0))
TextGadget(0, 10, 10, 300, 20, "TextGadget with ToolTip. But nothing is shown.")
CheckBoxGadget(1, 10, 30, 300, 20, "Checkbox with ToolTip. Click, and tooltip disappears.")
; set Tooltip to TextGadget
GadgetToolTip(0, "this is a tooltip")
; set Tooltip to CheckBoxGadget
GadgetToolTip(1, "this is a tooltip")
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Can anyone confirm this?
By the way, is it possible to add tooltips to TextGadgets, too? Like in the example above?
Kukulkan