API:Vcl.Forms.TCustomForm.SendCancelMode
Delphi
procedure SendCancelMode(Sender: TControl);
C++
HIDESBASE void __fastcall SendCancelMode(Vcl::Controls::TControl* Sender);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TCustomForm |
Description
Cancels the modal state of the control.
Vcl.Forms.TCustomForm.SendCancelMode inherits from Vcl.Controls.TControl.SendCancelMode. All content below this line refers to Vcl.Controls.TControl.SendCancelMode.
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.