This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| dev:v3:gui_api:toolbar:toolbartab [2020/07/07 04:59] – created jedi18 | dev:v3:gui_api:toolbar:toolbartab [2020/07/07 08:29] (current) – jedi18 | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| ---- | ---- | ||
| - | ===== Add Toolbar | + | ===== Add Group ===== |
| ---- | ---- | ||
| Line 40: | Line 40: | ||
| ---- | ---- | ||
| - | ===== Remove Callback | + | ===== Find Group ===== |
| ---- | ---- | ||
| Line 46: | Line 46: | ||
| ==== Description ==== | ==== Description ==== | ||
| - | Remove lua function called associated with the given name. Only named callbacks can be removed. | + | Find toolbar group in tab by group label. |
| - | * Callback name - //string// | + | * Toolbar Group Label - //string// |
| + | * returns // | ||
| ==== Examples ==== | ==== Examples ==== | ||
| - | * <code lua> | + | * <code lua> |
| ---- | ---- | ||
| Line 62: | Line 63: | ||
| ==== Description ==== | ==== Description ==== | ||
| - | Get and set label for the menu item. | + | Get and set label for the toolbar tab. |
| ==== Examples ==== | ==== Examples ==== | ||
| - | * <code lua> message(item1:label()) </ | + | * <code lua> message(tab1:label()) </ |
| - | * <code lua> | + | * <code lua> |
| ---- | ---- | ||
| - | ===== Hide and Show ===== | + | ===== Enable |
| ---- | ---- | ||
| Line 77: | Line 78: | ||
| ==== Description ==== | ==== Description ==== | ||
| - | Hide or show the menu item. | + | Enable |
| ==== Examples ==== | ==== Examples ==== | ||
| - | * <code lua> | + | * <code lua> |
| - | * <code lua> | + | * <code lua> |
| ---- | ---- | ||
| - | ===== Position | + | ===== Remove |
| ---- | ---- | ||
| Line 92: | Line 93: | ||
| ==== Description ==== | ==== Description ==== | ||
| - | Get the current | + | Remove |
| - | | + | ==== Examples ==== |
| + | |||
| + | | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Add Button ===== | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Description ==== | ||
| + | |||
| + | Add Toolbar Button to the tab by passing in Toolbar Button object and name of group to add button to. | ||
| + | |||
| + | * Pointer to Toolbar Button - // | ||
| ==== Examples ==== | ==== Examples ==== | ||
| - | * <code lua> | + | * <code lua> |
| - | * <code lua> item1: | + | |
| ---- | ---- | ||
| - | ===== Remove | + | ===== Get Group ===== |
| ---- | ---- | ||
| Line 109: | Line 123: | ||
| ==== Description ==== | ==== Description ==== | ||
| - | Remove the current menu item from the parent menu. | + | Get Toolbar Group by name from the tab. |
| + | |||
| + | * Toolbar Group Label - // | ||
| + | * returns // | ||
| + | |||
| + | ==== Examples ==== | ||
| + | |||
| + | * <code lua> local group1 = tab1: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== List of all groups ===== | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Description ==== | ||
| + | |||
| + | Return list containing all groups in the tab. | ||
| + | |||
| + | ==== Examples ==== | ||
| + | |||
| + | * <code lua> local groupsList = tab1: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Find Button ===== | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Description ==== | ||
| + | |||
| + | Find toolbar button in the group of the given name in the tab. | ||
| + | |||
| + | * Toolbar Group object - // | ||
| + | * returns // | ||
| + | |||
| + | ==== Examples ==== | ||
| + | |||
| + | * <code lua> local button1 = tab1: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Remove Group ===== | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Description ==== | ||
| + | |||
| + | Remove group of the given name or by passing in a toolbar group object. | ||
| + | |||
| + | * Toolbar Group object - // | ||
| + | * Label of Toolbar Group - //string// | ||
| ==== Examples ==== | ==== Examples ==== | ||
| - | * <code lua> | + | * <code lua> |
| + | * <code lua> tab1: | ||
| ---- | ---- | ||