Sign in Join
FPDoc Onlineexperiment

TCustomEditButton.GetControlClassDefaultSize function

Member of TCustomEditButtonprotectedIn unit EditBtn

Gets the default size used for new instances of the class.

Declaration

pascal
class function GetControlClassDefaultSize: TSize; override

Function result

TSize value with the dimensions for the new class instance.

Description

The return value is a TSize type with the dimensions for the control. The CX member contains the width needed for both the Edit and the Button controls in the grouped edit control. The CY member contains the height used for the Edit and the Button controls.

GetControlClassDefaultSize is called in the constructor for the class instance, and used to set the initial bounds for the control.

See also

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