ToolBarToolTip()
Syntaxe
ToolBarToolTip(#BarreOutils, Bouton, Texte$)Description
Associe ou remplace un texte flottant du bouton dans la #BarreOutils spécifée. Un 'Tooltip' est un texte flottant qui apparait au bout d'un certain temps lorsque le curseur de la souris est immobile au dessus d'un bouton d'une barre d'outils.
Exemple
If OpenWindow(0, 0, 0, 150, 60, "Barre d'outils", #PB_Window_SystemMenu |#PB_Window_ScreenCentered) If CreateToolBar(0, WindowID(0)) ToolBarStandardButton(0, #PB_ToolBarIcon_New) ToolBarStandardButton(1, #PB_ToolBarIcon_Open) ToolBarStandardButton(2, #PB_ToolBarIcon_Save) ToolBarToolTip(0, 0, "Nouveau") ToolBarToolTip(0, 1, "Ouvrir...") ToolBarToolTip(0, 2, "Enregistrer") EndIf Repeat Until WaitWindowEvent() = #PB_Event_CloseWindow EndIf
OS Supportés
Tous