Is there code that will limit a dial's maximum rotation movement visually? So if I have a dial that starts at 9 o'clock and can be turned to 3 o'clock in 45 degree increments, I would set the click_rotate to 45. When I get to the last spot, I want the dial image to stop there even if I continue to rotate the knobster. When I rotate the knob/dial back the other way, it would change accordingly until it got back to the starting point (9 o'clock). I understand that I can't stop the physical rotation of the knobster, but I would like to stop the further rotation of the visual. Possible?
Thanks,
Steve
Limiting dial roatation
Re: Limiting dial roatation
Yes possible. Either use a 5 position switch or separate the knob graphic from the dial function and control its position based on the value limits of whatever the dial controls.
Tony
Tony
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
- Keith Baxter
- Posts: 4674
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: Limiting dial roatation
Hi Steve
Use var_cap to limit max and min rotation.
http://siminnovations.com/wiki/index.php?title=Var_cap
Keith
Use var_cap to limit max and min rotation.
http://siminnovations.com/wiki/index.php?title=Var_cap
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card
Re: Limiting dial roatation
I would also say a switch, that's exactly what it's for
Re: Limiting dial roatation
Thank you all! Sometimes my brain just shuts out the obvious solutions.
Steve
Steve