GadgetToolTip()

Syntax

GadgetToolTip(#Gadget, Text$)
Description
Associate the specified Text$ with the #Gadget. A tooltip text is text which is displayed when the mouse cursor is over the gadget for a small amount of time (typically a yellow floating box).

Parameters

#Gadget The gadget to use.
Text$ The tooltip text.

Return value

None.

Remarks

The following gadgets are supported:

- ButtonGadget()
- ButtonImageGadget()
- CalendarGadget()
- CanvasGadget()
- CheckBoxGadget()
- ComboBoxGadget()
- ContainerGadget()
- DateGadget()
- EditorGadget()
- HyperLinkGadget()
- ImageGadget()
- ListIconGadget()
- ListViewGadget()
- OptionGadget()
- PanelGadget()
- ProgressBarGadget()
- SpinGadget()
- SplitterGadget()
- StringGadget()
- TrackBarGadget()
- TreeGadget()

Example

  If OpenWindow(0, 0, 0, 270, 100, "GadgetTooltip", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    ButtonGadget(0, 10, 30, 250, 30, "Button with tooltip")
    GadgetToolTip(0, "Tooltip for Button")
  EndIf

<- GadgetID() - Gadget Index - GadgetType() ->