Vcl.Controls.TControl.SendCancelMode

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SendCancelMode(Sender: TControl);

C++

void __fastcall SendCancelMode(TControl* Sender);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Cancels the modal state of the control.

Call SendCancelMode to cancel the modal state of the control. Various controls implemented in the VCL support a model state where the user must respond to the control before interacting with any other object on the form. An example is the dropped-down state of a combo box when the drop-down list is showing. For these controls, specific user actions send a Windows message to the control to end the model state, such as a mouse click that closes up the drop-down list.

SendCancelMode allows an application to end the modal state of the control in the absence of a user action, or when implementing a new user interface response.

See Also