Hello,
I'm wondering if there is an easy way to make the date/time "rollover"?
For example, in the editor above, if the user decremented the second, I have SpinWrap set to true so it decrements to 59, but the rest of the time stays the same (i.e. 14:00:59). What I'd like to make it do is decrement the whole time, not just the second portion, so the new value would become 13:59:59. Is there an easy way to do this, or would I have to handle an event and implement this functionality myself?
This is especially important for me with regards to crossing over midnight, since I don't want to show the date in this instance of the control, just the time, but I'd like the date to change if the value crosses over midnight (i.e. if 23:00:00 changes to 00:00:00, I'd like it to be 00:00:00 of the next day, not the same day).
Please let me know how to go about solving this. Thank you!
You can try setting the SpinIncrement to "1s" (s=seconds, m=months or minutes depending on whether it has date sections or not, h=hours, d=days, y=years). By default the spin buttons spin just the section that has the caret but the SpinIncrement is used to spin the entire value.
Thank you (both) for the help. This is close to what I want, but I don't want to have to limit it to just one set increment. I'd still like to be able to adjust whatever section that has the caret, but I'd like it to "rollover" like it does with the spinincrement set. Kind of a combination of both systems. Is this possible?