Project

General

Profile

$toolbar » History » Revision 12

Revision 11 (Per Amundsen, 03/27/2021 06:09 PM) → Revision 12/15 (Per Amundsen, 03/27/2021 06:10 PM)

_Added in 1.9.3_ 

 *$toolbar* 

 Returns [[$true]] if the [[Toolbar_Control|Toolbar]] [[Treebar_Control|Treebar]] is visible, otherwise [[$false]]. 

 ----------------------------------------------------------------------------- 

 *$toolbar(name||N)* 

 Returns properties for a [[Toolbar_Control|Toolbar]] [[Treebar_Control|Treebar]] button. 

 *Parameters* 

 name||N - Toolbar item name or the Nth item, if N = 0, number of [[Toolbar_Control|Toolbar]] [[Treebar_Control|Treebar]] items. 

 *Properties* 

 .name - [[Toolbar_Control|Toolbar]] [[Treebar_Control|Treebar]] item name. 
 .type -    button or separator. 
 .tip - [[Toolbar_Control|Toolbar]] [[Treebar_Control|Treebar]] tooltip text. 
 .alias - [[Toolbar_Control|Toolbar]] [[Treebar_Control|Treebar]] alias. 
 .popup - [[Toolbar_Control|Toolbar]] [[Treebar_Control|Treebar]] popup name. 
 .width - [[Toolbar_Control|Toolbar]] [[Treebar_Control|Treebar]] item width. 
 .height - [[Toolbar_Control|Toolbar]] [[Treebar_Control|Treebar]] 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) 
 .x - Horizontal position of the [[Toolbar_Control|Toolbar]] [[Treebar_Control|Treebar]] item relative to the main AdiIRC window. *(AdiIRC only)* 
 .y - Vertical position of the [[Toolbar_Control|Toolbar]] [[Treebar_Control|Treebar]] item relative to the main AdiIRC window. *(AdiIRC only)* 
 .w - [[Toolbar_Control|Toolbar]] [[Treebar_Control|Treebar]] item width. *(AdiIRC only)* 
 .h - [[Toolbar_Control|Toolbar]] [[Treebar_Control|Treebar]] item height. *(AdiIRC only)* 
 .dx - Horizontal position of the [[Toolbar_Control|Toolbar]] [[Treebar_Control|Treebar]] item relative to the desktop. *(AdiIRC only)* 
 .dy - Vertical position of the [[Toolbar_Control|Toolbar]] [[Treebar_Control|Treebar]] item relative to the desktop. *(AdiIRC only)* 

 *Example* 

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

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