- Messages
- 97
- Country

Hello,
I need some help with a button. I have a button that when pressed, text on a display will showup. When I press the same button a second time a new text will showup, when I press the same button a third time, a new text will show and when I press the 4th time the first text will show again.
I know how to make a - + button, for example like the code below:
But how do I create a, "step" button that will return to the start again after I have stepped through the selections?
Regards,
John
I need some help with a button. I have a button that when pressed, text on a display will showup. When I press the same button a second time a new text will showup, when I press the same button a third time, a new text will show and when I press the 4th time the first text will show again.
I know how to make a - + button, for example like the code below:
Code:
<MouseArea id="Regulator DEC">
<FloatPosition>0.000,0.000</FloatPosition>
<Size>100,110</Size>
<CursorType>DownArrow</CursorType>
<MouseClick id="MouseClick">
<Script>(L:Regulator,number) -- s0 0 < if{ 0 } els{ l0 } (>L:Regulator,number)</Script>
<ClickType>LeftSingle</ClickType>
</MouseClick>
</MouseArea>
<MouseArea id="Regulator INC">
<FloatPosition>49.000,0.000</FloatPosition>
<Size>99,110</Size>
<CursorType>UpArrow</CursorType>
<MouseClick id="MouseClick">
<Script>(L:Regulator,number) ++ s0 2 > if{ 2 } els{ l0 } (>L:Regulator,number)</Script>
<ClickType>LeftSingle</ClickType>
</MouseClick>
</MouseArea>
But how do I create a, "step" button that will return to the start again after I have stepped through the selections?
Regards,
John


