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, 200, 80, "ToolBar", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) If CreateToolBar(0, WindowID(0), #PB_ToolBar_Large | #PB_ToolBar_Text) UsePNGImageDecoder() Path$ = #PB_Compiler_Home + "Examples" + #PS$ + "Sources" + #PS$ + "Data" + #PS$ + "ToolBar" + #PS$ + "" ToolBarImageButton(0, LoadImage(0, Path$ + "New.png"), #PB_ToolBar_Normal, "New") ToolBarImageButton(1, LoadImage(1, Path$ + "Open.png"), #PB_ToolBar_Normal, "Open") ToolBarImageButton(2, LoadImage(2, Path$ + "Save.png"), #PB_ToolBar_Normal, "Save") ToolBarButtonText(0, 0, "Old !") EndIf Repeat Until WaitWindowEvent() = #PB_Event_CloseWindow EndIf
See Also
ToolBarImageButton(), ToolBarSeparator(), CreateToolBar()
Supported OS
All