Project

General

Profile

$style » History » Version 4

Per Amundsen, 02/23/2023 07:33 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 4 Per Amundsen
table(ktable).
10
|*Parameter*|*Description*|
11
| N | N = 0 for normal, N = 1 for checked, N = 2 for disabled, and N = 3 for both. |
12 1 Per Amundsen
13
*Example*
14
15
<pre>
16
; Create a custom window.
17
/window @Example
18
19 3 Per Amundsen
; Create a menu for @Example.
20 1 Per Amundsen
menu @Example {
21
  normal $style(0):
22
  checked $style(1):
23 2 Per Amundsen
  disabled $style(2):
24
  checked and disabled $style(3):
25 1 Per Amundsen
}
26
</pre>