$style » History » Revision 2
Revision 1 (Per Amundsen, 08/11/2015 01:27 PM) → Revision 2/4 (Per Amundsen, 12/14/2016 11:44 PM)
_Added in 1.8.10_
*$style(N)*
Used to modify the style of a menuitem during a [[Scripting_Menus|menu event]].
*Parameters*
N - N = 0 for normal, N = 1 for checked, N = 2 for disabled, and N = 3 for both.
*Example*
<pre>
; Create a custom window.
/window @Example
;Create a menu for @Example.
menu @Example {
normal $style(0):
checked $style(1):
disabled $style(2): $style(1):
checked and disabled $style(3): $style(1):
}
</pre>