Desktop UpDown Arrows
From Xojo Documentation
The Up Down Arrows control is generally used as an interface for iterating through items. There are two events, Up and Down, that determine whether the user has clicked an arrow.
Refer to UpDownArrows in the Language Reference for details on all its events, properties and methods.
Below are the commonly used events.
- Called when the down arrow is clicked.
- Called when the up arrow is clicked.
UpDownArrows can get the focus only on Windows. When an UpDownArrows control gets the focus, a selection rectangle appears around the control. The user can press the Up and Down arrow keys on the keyboard to press the top and bottom arrows in the control. You must set the AcceptFocus property to True to enable an UpDownArrows control to get the focus.
This code increases or decreases the value in a Text Field as the arrows are clicked.
In the Down event handler:
In the Up event handler: