ToolBarButtonText()
Syntaxe
ToolBarButtonText(#BarreOutils, Bouton, Texte$)Description
Modifie le texte d'un bouton.
Arguments
#BarreOutils La barre d'outils à utiliser. Button Le numéro du bouton à utiliser. Texte$ Le nouveau texte.
Valeur de retour
Aucune.
Remarques
La barre d'outils a dû être créée avec l'option #PB_ToolBar_Text.
Exemple
If OpenWindow(0, 0, 0, 200, 80, "Barre d'outils", #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, "Nouveau") ToolBarImageButton(1, LoadImage(1, Path$ + "Open.png"), #PB_ToolBar_Normal, "Ouvrir") ToolBarImageButton(2, LoadImage(2, Path$ + "Save.png"), #PB_ToolBar_Normal, "Enregistrer") ToolBarButtonText(0, 0, "Vieux !") EndIf Repeat Until WaitWindowEvent() = #PB_Event_CloseWindow EndI
Voir aussi
ToolBarImageButton(), ToolBarSeparator(), CreateToolBar()
OS Supportés
Tous