ToolBarSeparator()

Syntax

ToolBarSeparator()
Description
Add a vertical separator to toolbar being constructed. CreateToolBar() must be called before to use this function.

Parameters

None.

Return value

None.

Example

  Procedure MenuEvents()
    Debug "ToolBar item selected: " + EventMenu()
  EndProcedure
  
  If OpenWindow(0, 0, 0, 295, 260, "ToolBar example", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_ScreenCentered)
    
    CreateImage(0, 16, 16, 32, #PB_Image_Transparent)
    If StartDrawing(ImageOutput(0))
      Circle(8, 8, 7, RGB(255, 0, 0))
      StopDrawing()
    EndIf
    
    If CreateToolBar(0, WindowID(0))
      ToolBarImageButton(0, ImageID(0))
      ToolBarSeparator()
      ToolBarImageButton(2, ImageID(0))
      ToolBarSeparator()
      ToolBarImageButton(3, ImageID(0))
    EndIf
      
    BindEvent(#PB_Event_Menu, @MenuEvents())
  EndIf

See Also

CreateToolBar(), ToolBarImageButton()

Supported OS

All

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