TiModeComboBox.OnBeforeUserChange

TiModeComboBox

Allows for control over whether the Value property is changed and what value it is set to, but only when the Value is changed by the user.

type TOnBeforeUserChangeDouble = procedure(Sender : TObject; OldValue : Integer; var NewValue : Integer; var CanChange : Boolean) of object;

property OnBeforeUserChange : TOnBeforeUserChange;

Description

Use OnBeforeChange to control whether the Value property can change, but only when the Value is changed by the user. If the Value property is changed through code, then this event will not fire. The event passes the OldValue and NewValue for inspection. Set CanChange to TRUE to allow the Value property to change. You can also modify the value that the Value property is set to by changing the NewValue property.

Contents | Index | Previous | Next