Rules:
- When focus changes, the boolean is always set to False.
- Backspace on a 1 digit number reverts to minimum value and sets the boolean to True. No number is displayed when it's True, but it is still internally kept at the minimum value.
- When the number overflows, the boolean is left False.
- Control Changes when the boolean is True:
- Any key press besides Backspace sets the boolean back to False after it has been executed. Backspace is otherwise ignored.
- Pressing any number sets the first digit to that number, as if it was equal to 0.
- Page Up sets the number to 100 and Shift+Up sets the number to 10, as if it was equal to 0.
- Up, Down, Shift+Down, and Page Down leave the number at the minimum value.
- Home and End are unchanged.
- Any key press besides Backspace sets the boolean back to False after it has been executed. Backspace is otherwise ignored.
Multi-digit minimum values would throw a huge wrench into this but I think they'd throw a wrench into the way it works in general already, and I don't know of any off the top of my head.
As you've probably noticed, this is Part of a Series On: Dialog Windows
Looks like I'm 4 freaking years late