Sign in Join
FPDoc Onlineexperiment

TCustomPanel.GetControlClassDefaultSize function

Member of TCustomPanelprotectedIn unit ExtCtrls

Gets the size used for a new instance of the class type.

Declaration

pascal
class function GetControlClassDefaultSize: TSize; override

Function result

TSize value with the default dimensions for new class instances.

Description

GetControlClassDefaultSize is overridden to provide the default size for new instances of the class type. The return value is a TSize type which contains the dimensions for the new control. The CX member contains the Width for the panel, and defaults to 170 pixels. The CY member contains the Height for the panel, and defaults to 50 pixels.

See also

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