Project

General

Profile

$toolbar » History » Revision 11

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

_Added in 1.9.3_ 

 *$toolbar* 

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

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

 *$toolbar(name||N)* 

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

 *Parameters* 

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

 *Properties* 

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