[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Handles a mouse click on a speed button in the control.
Source position: comctrls.pp line 1987
protected procedure TCustomUpDown.Click( |
Button: TUDBtnType |
); virtual; overload; |
Button |
|
Identifies the button clicked on the control. |
Click is an overloaded method in TCustomUpDown used to respond to a mouse click on the speed button specified in Button. Click ensures that the button click is applied to the value in Position. It uses the values in Increment, Min, and Max to validate and range limit the new value according to the Button clicked on the control.
Click calls CanChange to determine whether the new value can be applied to the Position property. If CanChange returns False, the new value is not applied. If it returns True, the value is Position is updated and the OnClick event handler is signalled (when assigned).
Remark: | Click does not call the inherited (parameter-less) method in TControl. |
|
The current position (or value) for the control as a SmallInt type. |
|
|
The amount by which Position is increased or decreased for each button click. |
|
|
The smallest value allowed in the Position property. |
|
|
The largest value allowed in the Position property. |
|
|
Indicates whether a change using the control can be applied. |
|
|
Signals OnClick and/or executes the ActionLink when the control has been clicked. |
Version 4.0 | Generated 2025-05-03 | Home |