Vcl.ComCtrls.TUDChangingEventEx

From RAD Studio API Documentation
Jump to: navigation, search

C++

typedef void __fastcall (__closure *TUDChangingEventEx)(System::TObject* Sender, bool &AllowChange, int NewValue, TUpDownDirection Direction);

Properties

Type Visibility Source Unit Parent
typedef public Vcl.ComCtrls.hpp Vcl.ComCtrls Vcl.ComCtrls

Description

Type of the TUpDown event handler that gets called when the position of an up-down control is about to change.

Write an OnChangingEx event handler (type: TUDChangingEventEx) 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.

Sender is the up-down control that received the event. This may be in response to a user click on the arrow buttons or an attempt to change the value of Position programmatically.

AllowChange returns a value that indicates whether the change is permitted.

NewValue indicates the new value of Position if the change is allowed.

Direction indicates whether the value of Position is to be increased or decreased.

See Also