$style » History » Version 1
Per Amundsen, 08/11/2015 01:27 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 | ;Create a menu for @Example. |
||
18 | menu @Example { |
||
19 | normal $style(0): |
||
20 | checked $style(1): |
||
21 | disabled $style(1): |
||
22 | checked and disabled $style(1): |
||
23 | } |
||
24 | </pre> |