User Tools

Site Tools


Sidebar

Introduction

* Home

Documentation & help

LibreCAD Community

Help on DokuWiki

Temporary shorcuts

dev:v3:gui_api:toolbar:toolbartab

This is an old revision of the document!


Toolbar Tab GUI Class

Github Link

 namespace lc::ui::api 

Toolbar Tab Constructor


Description

Constructs a toolbar tab gui object. Tab after being constructed needs to be added to the toolbar for it to be visible in the application.

  • Toolbar Tab Name - string

Examples

  •  local tab1 = gui.ToolbarTab("Tab1")

Add Toolbar Group


Description

Add Toolbar Group to the tab of the given name and width or by pointer to existing toolbar group. Width is optional and is by default 3 cols long.

  • Toolbar Group Label - string , Width - int (Number of Columns)
    • returns ToolbarGroup
  • Pointer to Toolbar Group - ToolbarGroup

Examples

  •  local group1 = tab1:addGroup("Group1") 
  •  local group2 = tab1:addGroup("Group2", 4) 
  •  local group1 = gui.ToolbarGroup("Group3")
     tab1:addGroup(group1) 

Find Toolbar Group


Description

Find toolbar group in tab by group label.

  • Toolbar Group Label - string
    • returns ToolbarGroup

Examples

  •  local group1 = tab1:groupByName("Group1") 

Label


Description

Get and set label for the toolbar tab.

Examples

  •  message(tab1:label()) 
  •  tab1:setLabel("New Tab")

Enable and Disable


Description

Enable or disable the toolbar tab.

Examples

  •  tab1:enable() 
  •  tab1:disable() 

Remove


Description

Remove the current toolbat tab from the toolbar.

Examples

  •  tab:remove() 

dev/v3/gui_api/toolbar/toolbartab.1594099653.txt.gz · Last modified: 2020/07/07 05:27 by jedi18