Project

General

Profile

$toolbar » History » Revision 6

Revision 5 (Per Amundsen, 07/06/2018 11:54 PM) → Revision 6/15 (Per Amundsen, 08/30/2018 07:33 AM)

_Added in 1.9.3_ 

 *$toolbar* 

 Returns [[$true]] if [[/toolbar|Toolbar]] is visible, otherwise [[$false]]. 

 *$toolbar(name||N)* $toolbar(name||N) 

 Returns properties for a Toolbar button. 

 *Parameters* 

 name||N - Toolbar item name or the Nth item, if N = 0, number of Toolbar items. 

 *Properties* 

 .name - Toolbar item name. 
 .type -    button or separator. 
 .tip - Toolbar tooltip text. 
 .alias - Toolbar alias. 
 .popup - Toolbar popup name. 
 .width - Toolbar item width. 
 .height - Toolbar item height. 
 .wide - TODO ($true) 
 .enabled - [[$true]] if the Toolbar item is enabled, otherwise [[$false]]. 
 .visible - [[$true]] if the Toolbar item is visible, otherwise [[$false]]. 
 .checked - [[$true]] if the Toolbar item is checked, otherwise [[$false]]. 
 .alpha - TODO (0) 

 *Example* 

 <pre> 
 ; Print number of Toolbar items. 
 //echo -ag $toolbar(0) 

 ; Print the first Toolbar item name. 
 //echo -ag $toolbar(1) 
 </pre>