ToolBarButtonText()
Syntax
ToolBarButtonText(#ToolBar, Button, Text$)Description
Change the text for the specified #ToolBar button. The toolbar had to be created with the #PB_ToolBar_Text flag.
Parameters
#ToolBar The toolbar to use. Button The toolbar button to change the text. Text$ The new text to display.
Return value
None.
Example
If OpenWindow(0, 0, 0, 150, 20, "ToolBar", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) If CreateToolBar(0, WindowID(0), #PB_ToolBar_Large | #PB_ToolBar_Text) ToolBarStandardButton(0, #PB_ToolBarIcon_New, 0, "New") ToolBarStandardButton(1, #PB_ToolBarIcon_Open, 0, "Open") ToolBarStandardButton(2, #PB_ToolBarIcon_Save, 0, "Save") ToolBarButtonText(0, 0, "Old") EndIf Repeat Until WaitWindowEvent() = #PB_Event_CloseWindow EndIf
See Also
ToolBarStandardButton(), ToolBarImageButton(), ToolBarSeparator(), CreateToolBar()
Supported OS
All