This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
dev:v3:gui_api:toolbar:toolbarbutton [2020/07/07 09:01] – created jedi18 | dev:v3:gui_api:toolbar:toolbarbutton [2020/07/07 09:05] – jedi18 | ||
---|---|---|---|
Line 22: | Line 22: | ||
---- | ---- | ||
- | ===== Add Button | + | ===== Set tooltip |
---- | ---- | ||
Line 28: | Line 28: | ||
==== Description ==== | ==== Description ==== | ||
- | Add Toolbar Button to the group of the given **name** and **icon** or by pointer to existing toolbar group. Toolbar | + | Set the tooltip for the button. |
- | * Toolbar Button Label - //string// , Icon path - // | + | * |
- | * returns // | + | |
- | * Toolbar Button Label - //string// , Icon path - //string// , Lua Callback - // | + | |
- | * returns // | + | |
- | * Pointer to Toolbar Button - // | + | |
==== Examples ==== | ==== Examples ==== | ||
- | * <code lua> | + | * <code lua> button1:setTooltip("New Tooltip") </ |
- | * <code lua> local button1 = group1: | + | |
- | * <code lua> local button1 = gui.ToolbarButton(" | + | |
- | | + | |
---- | ---- | ||
Line 81: | Line 74: | ||
==== Description ==== | ==== Description ==== | ||
- | Hide or show the toolbar | + | Hide or show the toolbar |
==== Examples ==== | ==== Examples ==== |