[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TCustomUpDown.OnClick

Event handler signalled when a button on the control is clicked.

Declaration

Source position: comctrls.pp line 1998

protected property TCustomUpDown.OnClick : TUDClickEvent
  read FOnClick
  write FOnClick;

Description

OnClick is a TUDClickEvent property with the event handler signalled when a button on the control has been clicked. A Button argument is passed to the event handler to indicate which button, increment or decrement, was clicked on the control.

OnClick is signalled from the Click method. It occurs after the new property value has been validated and range limited using Min and Max. It also occurs after CanChange has been called to determine if the new property value can be applied to Position. OnClick occurs immediately after the new value has been assigned to the Position property.

See also

TCustomUpDown.Click

  

Handles a mouse click on a speed button in the control.

TCustomUpDown.Max

  

The largest value allowed in the Position property.

TCustomUpDown.Min

  

The smallest value allowed in the Position property.

TCustomUpDown.Position

  

The current position (or value) for the control as a SmallInt type.

TUDClickEvent

  

Specifies an event handler signalled for a button click on a TUpDown control.

TUDBtnType

  

Represents the buttons used in a TCustomUpDown control.


Version 4.0 Generated 2025-05-03 Home