Skip to main content

Create(TdxCustomDockControl,Integer,TdxZoneKind) Constructor

Creates a new zone.

Declaration

constructor Create(AOwner: TdxCustomDockControl; AWidth: Integer; AKind: TdxZoneKind);

Parameters

Name Type
AOwner TdxCustomDockControl
AWidth Integer
AKind TdxZoneKind

Remarks

The Create method is used to create a new zone object. The AOwner parameter specifies the zone’s owner control. This is the control whose DockZones or ResizeZones list will contain the zone. The AWidth parameter specifies the zone width. This value is assigned to the Width property of the zone. Note that if zero or a negative value is specified as the AWidth parameter, the zone’s Width property will return the dxDockZonesWidth constant value.

Use the constructor to create zones at runtime. This can be used if you add custom zones to either the DockZones or ResizeZones list of a dock control.

See Also