[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Notifies the parent Form when the control cannot be focused.
Source position: controls.pp line 2316
protected procedure TWinControl.RemoveFocus( |
Removing: Boolean |
); |
Removing |
|
True if the control is being freed, False when it is not enabled or not visible. |
RemoveFocus is a method used to notify the parent form when the control cannot be focused. RemoveFocus is called from methods like Destroy and RemoveControl, where the control will no longer exist on the parent form. It is also called from methods like CMEnabledChanged and CMVisibleChanged, where the parent form should no longer allow the control to be focused.
RemoveFocus calls GetParentForm to get the parent form instance, and calls its DefocusControl method to ensure that the control is removed as the ActiveControl (when assigned).
|
Handler signalled when the Enabled property has been changed. |
|
|
Handles Focus changes, and forces UpdateControlState. |
|
|
Removes the specified control from the Controls property. |
|
|
Destructor for the class instance. |
|
|
Updates ActiveControl if it is to be de-focused. |
|
|
Specifies the active control on the form. |
|
|
Gets the form instance for the specified Control. |
Version 3.2 | Generated 2024-02-25 | Home |