Desktop UpDown Arrows
From Xojo Documentation
Contents
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.
Events
- Called when the down arrow is pressed.
- Called when the up arrow is pressed.
Handling Focus
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.
Usage
This code increases or decreases the value in a Text Field as the arrows are pressed.
In the Down event handler:
In the Up event handler:
See Also
UpDownArrows class