Vcl.ComCtrls.TUpDown.OnChanging
Delphi
property OnChanging;
C++
__property OnChanging;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TUpDown |
Description
Occurs when the position of an up-down control is about to change.
Vcl.ComCtrls.TUpDown.OnChanging inherits from Vcl.ComCtrls.TCustomUpDown.OnChanging. All content below this line refers to Vcl.ComCtrls.TCustomUpDown.OnChanging.
Occurs when the position of an up-down control is about to change.
Write an OnChanging event handler (type: TUDChangingEvent) to conditionally disallow changes to the value of Position. Set the AllowChange parameter to false to prevent a change to the current value of Position.
OnChanging occurs both when the user clicks the arrow buttons of the up-down control and when an attempt is made to change the value of Position programmatically. To determine which button the user clicked, use the OnChangingEx event or the OnClick event, both of which follow the OnChanging event.