Menubar » History » Version 26
  Per Amundsen, 03/26/2021 06:22 PM 
  
| 1 | 1 | Per Amundsen | _Added in 1.9.0_ | 
|---|---|---|---|
| 2 | |||
| 3 | 9 | Per Amundsen | */menubar [on|off]* | 
| 4 | 1 | Per Amundsen | |
| 5 | 4 | Per Amundsen | Enables or disables Menubar. | 
| 6 | |||
| 7 | [[$menubar]] can be used to determine it's state. | ||
| 8 | 1 | Per Amundsen | |
| 9 | 5 | Per Amundsen | If no parameter is defined, prints current Menubar visibility status. | 
| 10 | 1 | Per Amundsen | |
| 11 | 25 | Per Amundsen | _When Menubar is disabled, it can be temporary enabled by pressing the %(key)ALT% key, it can also be viewed by right-clicking the [[Titlebar Control|Titlebar]] in the main AdiIRC window_. | 
| 12 | 22 | Per Amundsen | |
| 13 | 9 | Per Amundsen | *Parameters* | 
| 14 | |||
| 15 | [on] - Enables Menubar. | ||
| 16 | [off] - Disables Menubar. | ||
| 17 | |||
| 18 | 18 | Per Amundsen | ----------------------------------------------------------------------------- | 
| 19 | |||
| 20 | 12 | Per Amundsen | _Added in 1.9.7_ | 
| 21 | |||
| 22 | 23 | Per Amundsen | */menubar [-adrishtiox] [N] <N|name> <@popup> [text]* | 
| 23 | 9 | Per Amundsen | |
| 24 | 26 | Per Amundsen | Adds or removes custom [[Scripting_Menus|menu items]] to the Menubar. | 
| 25 | 9 | Per Amundsen | |
| 26 | 24 | Per Amundsen | _*AdiIRC only*_ | 
| 27 | 9 | Per Amundsen | |
| 28 | 6 | Per Amundsen | *Switches* | 
| 29 | |||
| 30 | 1 | Per Amundsen | -a - Add a new menu. | 
| 31 | 20 | Per Amundsen | -d - Delete item named <name> or the Nth item. | 
| 32 | 21 | Per Amundsen | -r - Resets all menus to default. | 
| 33 | 16 | Per Amundsen | -i - Insert a menu at position [N]. | 
| 34 | 19 | Per Amundsen | -s - Show a hidden menu. | 
| 35 | 16 | Per Amundsen | -h - Hide a menu. | 
| 36 | -t - Change the text of a menu. | ||
| 37 | 1 | Per Amundsen | -o - Change the @popup menu associated with the menu. | 
| 38 | 23 | Per Amundsen | -x - Add a separator. | 
| 39 | 1 | Per Amundsen | |
| 40 | 6 | Per Amundsen | *Parameters* | 
| 41 | |||
| 42 | 9 | Per Amundsen | <N> - Position to insert or delete at when using -i/-d. | 
| 43 | 14 | Per Amundsen | <N|name> - Name of a menu item to add/delete/modify or the Nth position to insert at when -i is used. | 
| 44 | <@popup> - The @popup menu to associate with the menu. | ||
| 45 | 3 | Per Amundsen | |
| 46 | *Example* | ||
| 47 | 1 | Per Amundsen | |
| 48 | 3 | Per Amundsen | <pre> | 
| 49 | 14 | Per Amundsen | ; Setup a custom menu for the 'mymenu' menu. | 
| 50 | 9 | Per Amundsen | menu @mymenu { | 
| 51 | 8 | Per Amundsen | Hello World:echo -ag Hello world | 
| 52 | 3 | Per Amundsen | Menu name:echo -ag Menu name is $menu | 
| 53 | } | ||
| 54 | |||
| 55 | 14 | Per Amundsen | ; Adda a new menu named 'mymenu' with the text 'Top Menu Test'. | 
| 56 | 9 | Per Amundsen | /menubar -a mymenu @mymenu Top Menu Test | 
| 57 | 7 | Per Amundsen | |
| 58 | 14 | Per Amundsen | ; Changes the text of the menu named 'mymenu' to 'Top Menu Test2'. | 
| 59 | 7 | Per Amundsen | /menubar -t mymenu Top Menu Test2 | 
| 60 | 3 | Per Amundsen | |
| 61 | 14 | Per Amundsen | ; Delete the menu named 'mymenu'. | 
| 62 | 3 | Per Amundsen | /menubar -d mymenu | 
| 63 | 1 | Per Amundsen | </pre> |