TCustomButton.UpdateDefaultCancel procedure
Updates the Default and Cancel properties in the parent form.
Declaration
procedure UpdateDefaultCancelDescription
UpdateDefaultCancel is a method used to update the default and
cancel controls on the parent form.
UpdateDefaultCancel calls GetParentForm to get the parent for the
control. When the parent form has been assigned, its
DefaultControl and CancelControl properties are updated
when needed. DefaultControl is updated when the Default property
is set to True. CancelControl is updated when the Cancel
property is set to True.
UpdateDefaultCancel calls WSSetDefault to notify the widgetset
class when the control is the default control.
UpdateDefaultCancel is called from the CreateWnd and
Loaded methods.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
