Project

General

Profile

$toolbar » History » Revision 10

Revision 9 (Per Amundsen, 01/02/2019 06:53 AM) → Revision 10/15 (Per Amundsen, 12/13/2019 09:13 PM)

_Added in 1.9.3_ 

 *$toolbar* 

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

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

 *$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* 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* TODO (0) 
 .x - Horizontal position of the toolbar item relative to the main AdiIRC window. *(AdiIRC only)* (AdiIRC only) 
 .y - Vertical position of the toolbar item relative to the main AdiIRC window. *(AdiIRC only)* (AdiIRC only) 
 .w - Toolbar item width. *(AdiIRC only)* (AdiIRC only) 
 .h - Toolbar item height. *(AdiIRC only)* (AdiIRC only) 
 .dx - Horizontal position of the toolbar item relative to the desktop. *(AdiIRC only)* (AdiIRC only) 
 .dy - Vertical position of the toolbar item relative to the desktop. *(AdiIRC only)* (AdiIRC only) 

 *Example* 

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

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