[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomButton.WSSetDefault

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

Declaration

Source position: stdctrls.pp line 1240

protected procedure TCustomButton.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

TCustomButton.Default

  

True if the button is the default button in a modal form.

TCustomButton.Active

  

True if the control is the Cancel or Default button.

TCustomButton.ActiveDefaultControlChanged

  

Updates the button and/or parent form when the active default control has been changed.

TCustomButton.UpdateDefaultCancel

  

Updates the Default and Cancel properties in the parent form.


Version 4.0 Generated 2025-05-03 Home