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 (HTML format).

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, "<i>Tooltip</i> for Button") : Using HTML markup
  EndIf

Supported OS

All

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