Menubar » History » Revision 14
Revision 13 (Per Amundsen, 09/05/2015 12:59 PM) → Revision 14/28 (Per Amundsen, 09/05/2015 01:04 PM)
_Added in 1.9.0_ */menubar [on|off]* Enables or disables Menubar. [[$menubar]] can be used to determine it's state. If no parameter is defined, prints current Menubar visibility status. *Parameters* [on] - Enables Menubar. [off] - Disables Menubar. _Added in 1.9.7_ */menubar [-adishtio] [N] <N|name> <@popup> [text]* Adds or removes custom menu items menuitems to the Menubar. _AdiIRC only_ *Switches* -a - Add a new menu. topmenu. -d - Delete a menu. topmenu. -i - Inserts a menu topmenu at position [N]. -s - Shows a hidden menu. topmenu. -h - Hides a menu. topmenu. -t - Changes the text of a menu. topmenu. -o - Changes the @popup menu associated with the menu. topmenu. *Parameters* <N> - Position to insert or delete at when using -i/-d. <N|name> - Name of a menu topmenu item to add/delete/modify or the Nth position to insert at when -i is used. <@popup> - The @popup menu to associate with the menu. topmenu. *Example* <pre> ; Setup a custom menu for the 'mymenu' menu. topbar. menu @mymenu { Hello World:echo -ag Hello world Menu name:echo -ag Menu name is $menu } ; Adda a new top menu named 'mymenu' with the text 'Top Menu Test'. /menubar -a mymenu @mymenu Top Menu Test ; Changes the text of the menu topmenu named 'mymenu' to 'Top Menu Test2'. /menubar -t mymenu Top Menu Test2 ; Delete the menu topmenu named 'mymenu'. /menubar -d mymenu </pre>