ToolBarToolTip()

Syntax

ToolBarToolTip(#ButtonID, Text$)
Description
Associates the specified Text$ to the current ToolBar #ButtonID. A Tooltip text is a text which displayed when the mouse cursor is over the button since a few time (yellow floating box).

Example:
  If OpenWindow(0, 0, 0, 150, 60, #PB_Window_SystemMenu |#PB_Window_ScreenCentered, "ToolBar")
    If CreateToolBar(0, WindowID())
      ToolBarStandardButton(0, #PB_ToolBarIcon_New)
      ToolBarStandardButton(1, #PB_ToolBarIcon_Open)
      ToolBarStandardButton(2, #PB_ToolBarIcon_Save)
      ToolBarToolTip(0,"New document")
      ToolBarToolTip(1,"Open file")
      ToolBarToolTip(2,"Save file")
    EndIf
    Repeat
    Until WaitWindowEvent() = #PB_Event_CloseWindow 
  EndIf

Supported OS

Windows, Linux, MacOS X

<- ToolBarStandardButton() - ToolBar Index