[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TUpDown - a pair of arrow-like buttons which are used to increment or decrement some controlled variable; often attached to a scroll-bar but can also control a digital numeric display.
Source position: comctrls.pp line 1991
type TUpDown = class(TCustomUpDown) |
||
published |
||
|
Specifies the placement of the control on its Parent control. |
|
property AlignButton: TUDAlignButton; |
|
AlignButton - how to align the button: left or right. |
|
The set of anchor definitions for this control. |
|
property ArrowKeys: Boolean; |
|
ArrowKeys - if True, the control can be operated by the keyboard's arrow keys which would simulate a click on the Next or Previous button. |
property Associate: TWinControl; |
|
Associate - the associated control whose properties (controlled variable) are to be changed by the UpDown control. |
property BorderSpacing: TControlBorderSpacing; |
|
Determines the inner and outer border spacing for this control. |
|
The background color of the control. |
|
property Constraints: TSizeConstraints; |
|
Contains the minimum and maximum Width and Height for the control. |
property Enabled: Boolean; |
|
Determines whether the control responds to mouse or keyboard input. |
property Hint: TTranslateString; |
|
The text to show in the Hint window for the control. |
property Increment: Integer; |
|
The amount by which the controlled variable is to be increased or decreased on each click. |
property Max: SmallInt; |
|
Max - greatest value of controlled variable. |
property Min: SmallInt; |
|
Min - least value of controlled variable. |
property MinRepeatInterval: Byte; |
|
Minimum interval that must elapse before the action for the control is repeated. |
property OnChanging: TUDChangingEvent; |
|
OnChanging - event handler for a change in the value of the controlled variable. |
property OnChangingEx: TUDChangingEventEx; |
|
Event handler signalled to determine if the control can change its value. |
property OnClick: TUDClickEvent; |
|
OnClick - special event handler for a click on up or down button. |
property OnContextPopup: TContextPopupEvent; |
|
Invoked when a context-sensitive pop-up menu is requested. |
property OnEnter: TNotifyEvent; |
|
Handler for control receiving the focus. |
property OnExit: TNotifyEvent; |
|
Handler for control losing the focus; This is a good place for checking the finished user input. |
property OnMouseDown: TMouseEvent; |
|
Event handler signalled when a mouse down event is handled for the control. |
property OnMouseEnter: TNotifyEvent; |
|
Event handler signalled when the mouse pointer has entered the control. |
property OnMouseLeave: TNotifyEvent; |
|
Event handler signalled when the mouse pointer has left the control. |
property OnMouseMove: TMouseMoveEvent; |
|
Event handler for mouse movement within the control. |
property OnMouseUp: TMouseEvent; |
|
Event handler signalled when a mouse up event is handled for the control. |
property OnMouseWheel: TMouseWheelEvent; |
|
Event handler for mouse wheel turned. |
property OnMouseWheelDown: TMouseWheelUpDownEvent; |
|
Event handler for downward movement of mouse wheel. |
property OnMouseWheelUp: TMouseWheelUpDownEvent; |
|
Event handler for upward movement of the mouse wheel. |
property OnMouseWheelHorz: TMouseWheelEvent; |
|
Event handler for horizontal movements of the mouse wheel. |
property OnMouseWheelLeft: TMouseWheelUpDownEvent; |
|
Event handler signalled for left mouse wheel movements. |
property OnMouseWheelRight: TMouseWheelUpDownEvent; |
|
Event handler signalled for right mouse wheel movements. |
property Orientation: TUDOrientation; |
|
Whether horizontal or vertical. |
property ParentColor: Boolean; |
|
Use the Color from the Parent control, when enabled. |
property ParentShowHint: Boolean; |
|
If True, the value of ShowHint for the control will be the same as the one from the Parent. Default is True. |
property PopupMenu: TPopupMenu; |
|
A context-sensitive menu that pops up when the right mouse button is clicked over this control. |
property Position: SmallInt; |
|
The Position of the UpDown control. |
property ShowHint: Boolean; |
|
Enables Hint display for the control. |
|
Indicates the navigation order for the control when the user presses the Tab or Shift+Tab key. |
|
property TabStop: Boolean; |
|
Allows the user to navigate to / from the control by pressing the Tab or Shift+Tab keys. |
property Thousands: Boolean; |
|
If True, multiply all displayed values and the Increment by 1000. |
property Flat: Boolean; |
|
Indicates of the speed buttons for the control are drawn using a flat appearance. |
property Visible: Boolean; |
|
Allows the control, and all of its children, to be displayed or hidden. |
property Wrap: Boolean; |
|
If True, displayed control or value starts again from minimum or maximum value if clicking a button would cause incrementing or decrementing beyond the extreme value. |
end; |
|
TUpDown - a pair of arrow-like buttons which are used to increment or decrement some controlled variable; often attached to a scroll-bar but can also control a digital numeric display. |
|
| | ||
|
TCustomUpDown - base class for TUpDown - a pair of arrow-like buttons which are used to increment or decrement some controlled variable; often attached to a scroll-bar but can also control a digital numeric display. |
|
| | ||
|
The base class for windowed controls which paint themselves. |
|
| | ||
|
Implements a windowed control which can contain other child controls. |
|
| | ||
|
The base class for visible controls. |
|
| | ||
|
The base class for LCL components which have an associated widget. |
|
| | ||
TComponent |
||
? | ||
TObject |
TUpDown - a pair of arrow-like buttons which are used to increment or decrement some controlled variable; often attached to a scroll-bar but can also control a digital numeric display
The control definition itself does not specify the variable upon which the buttons operate. The application programmer is responsible for supplying an event handler for OnClick to determine which button has been selected (designated btNext or btPrev) and incrementing or decrementing the variable in the control with which the UpDown is associated.
The amount by which the variable is changed is set by the integer property Increment with the optional multiplier Thousands (a boolean property).
For example the UpDown control may be used to move a slider up and down a scale by a specified amount for each click; alternatively a number may be displayed in a text box and clicking the buttons of the UpDown control may increment or decrement the number displayed by a specified amount.