First, you will need a variable for your switch, such as L:OMISens,enum
This switch will have three positions: 0 - 1 - 2
Since the normal position will be LO, therefore a value of 1, you will need to initialize your variable to a value of 1, rather than the default value of 0:
<Update>
(L:Init,bool) 0 == if{
1 (>L:OMISens,enum)
1 (>L:Init,bool) }
</Update>
Next, you will need to code your <Element> section to display the bitmaps based on the "case" model.
Finally, you will need to code two mouse rectangles:
1. To swap the value of your L:OMISens,enum variable between 1 and 2
2. A mouse rectangle that will use the mouse left click event to set your L:OMISens,enum variable to 0, and will reset the value to 1 on the mouse release event.




Reply With Quote
Bookmarks