$style » History » Version 3
Per Amundsen, 12/14/2016 11:44 PM
1 | 1 | Per Amundsen | _Added in 1.8.10_ |
---|---|---|---|
2 | |||
3 | *$style(N)* |
||
4 | |||
5 | Used to modify the style of a menuitem during a [[Scripting_Menus|menu event]]. |
||
6 | |||
7 | *Parameters* |
||
8 | |||
9 | N - N = 0 for normal, N = 1 for checked, N = 2 for disabled, and N = 3 for both. |
||
10 | |||
11 | *Example* |
||
12 | |||
13 | <pre> |
||
14 | ; Create a custom window. |
||
15 | /window @Example |
||
16 | |||
17 | 3 | Per Amundsen | ; Create a menu for @Example. |
18 | 1 | Per Amundsen | menu @Example { |
19 | normal $style(0): |
||
20 | checked $style(1): |
||
21 | 2 | Per Amundsen | disabled $style(2): |
22 | checked and disabled $style(3): |
||
23 | 1 | Per Amundsen | } |
24 | </pre> |