Project

General

Profile

Menubar » History » Revision 6

Revision 5 (Per Amundsen, 08/26/2015 07:23 AM) → Revision 6/27 (Per Amundsen, 08/30/2015 04:52 AM)

_Added in 1.9.0_ 

 */menubar [-adisht] [N|on|off|name] [name|text]* [-ad] [on|off|name] [text]* 

 Enables or disables Menubar.  

 [[$menubar]] can be used to determine it's state. 

 If no parameter is defined, prints current Menubar visibility status. 

 *Switches* 

 (AdiIRC only) 
 -a - Add a new topmenu. (AdiIRC only) 
 -d - Delete a topmenu. 
 -i - Inserts a topmenu at position [N]. 
 -s - Shows a hidden topmenu. 
 -h - Hides a topmenu. 
 -t - Changes the text of a topmenu. (AdiIRC only) 

 *Parameters* 

 [N] - Position to insert at when using -i. (AdiIRC only) 
 [on] - Enables Menubar. 
 [off] - Disables Menubar. 
 [name] - Name of a topmenu item to add/delete/modify. add or delete. (AdiIRC only) 

 
 [text] - Text for the new topmenu to add/edit. add. (AdiIRC only) 

 *Example* 

 <pre> 
 ; Setup a custom menu for the 'mymenu' topbar. 
 menu mymenu { 
   Hello World:echo -ag Hello world 
 } 

 ; Adda a new top menu named 'mymenu' with the text 'Top Menu Test'. 
 /menubar -a mymenu Top Menu Test 

 ; Delete the topmenu named 'mymenu'. 
 /menubar -d mymenu 
 </pre>