Sign in Join
FPDoc Onlineexperiment

TCustomButton.WSSetDefault procedure

Member of TCustomButtonprotectedIn unit StdCtrls

Notifies the widgetset class of a change to the Default property.

Declaration

pascal
procedure WSSetDefault

Description

WSSetDefault is a method used to notify the widgetset class when the value in the Default property has been changed.

WSSetDefault calls the SetDefault method in the widgetset class using the value in the Active property. Active is used because Default represents the design-time setting for the control. At run-time, Active contains the default button clicked when the Enter key is pressed.

Called when a new value is assigned to the Default property. Called when the value in Active is changed in the ActiveDefaultControlChanged method. Called when UpdateDefaultCancel sets the default and cancel controls on the parent form.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.