This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
dev:v3:gui_api:toolbar:toolbartab [2020/07/07 04:59] – created jedi18 | dev:v3:gui_api:toolbar:toolbartab [2020/07/07 05:27] – [Examples] jedi18 | ||
---|---|---|---|
Line 40: | Line 40: | ||
---- | ---- | ||
- | ===== Remove Callback | + | ===== Find Toolbar 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 ===== | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ==== Description ==== | + | |
- | + | ||
- | Get the current menu item position or set the menu item position. Other items are rearranged accordingly. | + | |
- | + | ||
- | * New Position - //int// | + | |
- | + | ||
- | ==== Examples ==== | + | |
- | + | ||
- | * <code lua> local pos = item1: | + | |
- | * <code lua> item1: | + | |
---- | ---- | ||
Line 109: | Line 93: | ||
==== Description ==== | ==== Description ==== | ||
- | Remove the current | + | Remove the current |
==== Examples ==== | ==== Examples ==== | ||
- | * <code lua> | + | * <code lua> |
---- | ---- |