This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Multistate knob widget
#1
Good day,

is it possible to make a multistate knob widget with the old visu? I would like to add it to an old project.

something like that:
   

Thank you
Reply
#2
Use Additional icons, you will need images of the knob in different states.
------------------------------
Ctrl+F5
Reply
#3
It's possible to create a multi-state button using send fixed value attached to a virtual object. Set the multi-state object as status. Use additional icons to set an icon for each state.
Map an event script to the virtual object. Each write to a virtual object will change multi-state value to the next one (0, 1 or 2).
Code:
out = '0/3/3'
val = grp.getvalue(out)
val = (val + 1) % 3
grp.write(out, val)
Reply
#4
Great, thanks!
Reply


Forum Jump: