RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TUpDown.OnChanging Event

Occurs when the position of an up-down control is about to change.

Pascal
property OnChanging: TUDChangingEvent;
C++
__property TUDChangingEvent OnChanging;

Write an OnChanging event handler 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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!