werner Posted July 11, 2009 Report Share Posted July 11, 2009 (edited) Hi there, is it possible to set up a NumCtrl with a "wrap around". If I reach the maximum value and I press "up" again I want it to jump to the minimum number and vice versa. E.g. (pressing up again and again) 0 1 2 3 4 5 0 1 3 4 5 or (pressing down...) 5 4 3 2 1 0 5 4 3 2 1 Edited July 11, 2009 by werner Quote Link to comment
jcarmody Posted July 11, 2009 Report Share Posted July 11, 2009 Hi there, is it possible to set up a NumCtrl with a "wrap around" [...]? You can use an Event Structure. If the value changes to 6 set it to 0, if it changes to -1, set it to 5. Quote Link to comment
Francois Normandin Posted July 11, 2009 Report Share Posted July 11, 2009 Hi there, is it possible to set up a NumCtrl with a "wrap around". If I reach the maximum value and I press "up" again I want it to jump to the minimum number and vice versa. E.g. (pressing up again and again) 0 1 2 3 4 5 0 1 3 4 5 or (pressing down...) 5 4 3 2 1 0 5 4 3 2 1 If you have a limited and well defined number of possibilities (0-5 for example), you could use a text-ring control. You have to set the strings values from 0 to 6 and then it will go in circle when you increment or decrement. If you have a huge set of possibilities (or infinite), don't try that. jcarmody's solution is what you need. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.