ToolBarSeparator()

Syntaxe

ToolBarSeparator()
Description
Ajoute un séparateur vertical à la barre d'outils en cours de création.

Arguments

Aucun.

Valeur de retour

Aucune.

Remarques

La fonction CreateToolBar() doit avoir été appelée avant d'utiliser cette fonction.

Exemple

  If OpenWindow(0, 0, 0, 150, 25, "Barre d'outils", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
    If CreateToolBar(0, WindowID(0))
      UsePNGImageDecoder()
      Path$ = #PB_Compiler_Home  + "Examples" + #PS$ + "Sources" + #PS$ + "Data" + #PS$ + "ToolBar" + #PS$ + ""
      ToolBarImageButton(0, LoadImage(0, Path$ + "New.png"))
      ToolBarSeparator()
      ToolBarImageButton(1, LoadImage(1, Path$ + "Open.png"))
      ToolBarSeparator()
      ToolBarImageButton(2, LoadImage(2, Path$ + "Save.png"))
      ToolBarSeparator()
      ToolBarSeparator()
    EndIf
    Repeat
      Event = WaitWindowEvent()
      If Event = #PB_Event_Menu
        Debug "Identifiant de la barre d'outils : "+Str(EventMenu())
      EndIf
    Until Event = #PB_Event_CloseWindow 
  EndIf

Voir aussi

CreateToolBar(), ToolBarImageButton()

OS Supportés

Tous

<- ToolBarImageButton() - ToolBar Index - ToolBarToolTip() ->