Class tcustomlayouter

Unit

Declaration

type tcustomlayouter = class(tcustomspacer)

Description

A tcustomspacer descendant that auto-arranges its contained widgets; layouters can be nested for complex layouts. optionslayout combines, independently for each axis, a sync step — normalizing the widgets' sizes/caption room before arranging them, e.g. lao_syncmaxautosize (autosize then match every widget's client area to the largest one), lao_syncpaintwidth/lao_syncpaintheight (match outer frame width/height) or lao_synccaptiondistx/ lao_synccaptiondisty (match frame caption room) — with one of two arrangement modes: place (lao_placex/lao_placey), which spaces the widgets out (in decreasing widgetrect.x/.y order) at a distance between place_mindist and place_maxdist, following place_mode (wam_start/wam_end/ wam_center) and place_options (plo_propmargin distributes the distances as outer margins too, plo_endmargin lets one widget absorb the remaining space, plo_noinvisible skips room for invisible widgets, plo_scalesize/ plo_scalefullref scale the widgets to fit); and align (lao_alignx/lao_aligny), which snaps the other widgets' matching border (or axis, for wam_center) to that of align_leader (defaults to widgets[0]) according to align_mode, then optionally glues the whole aligned group to an edge of the layouter's client area via align_glue.

Hierarchy

Overview

Methods

Protected procedure scalebasechanged(const sender: twidget); override;
Protected function scalesizeref: sizety;
Protected function childrenleft: integer;
Protected function childrentop: integer;
Protected function childrenright: integer;
Protected function childrenbottom: integer;
Protected function childrenwidth: integer;
Protected function childrenheight: integer;
Protected function childrenminwidth: integer;
Protected function childrenminheight: integer;
Protected procedure scalesizerefchanged;
Protected procedure updatescalesizeref;
Protected procedure delayedupdatelayout();
Protected procedure checkwidgetinfo();
Protected procedure updatelayout;
Protected procedure readstate(reader: treader); override;
Protected procedure loaded; override;
Protected procedure fontchanged; override;
Protected procedure widgetregionchanged(const sender: twidget); override;
Protected procedure childclientrectchanged(const sender: twidget); override;
Protected procedure childautosizechanged(const sender: twidget); override;
Protected procedure clientrectchanged; override;
Protected function calcminscrollsize: sizety; override;
Protected procedure registerchildwidget(const child: twidget); override;
Protected procedure unregisterchildwidget(const child: twidget); override;
Protected function widgetinfoindex(const awidget: twidget): integer;
Protected procedure updatewidgetinfo(var ainfo: widgetlayoutinfoty; const awidget: twidget; const force: boolean = false);
Protected procedure doasyncevent(var atag: integer); override;
Public constructor create(aowner: tcomponent); override;

Properties

Public property optionslayout: layoutoptionsty read foptionslayout write setoptionslayout default defaultlayoutoptions;
Public property align_mode: widgetalignmodety read falign_mode write setalign_mode default wam_center;
Public property align_leader: twidget read falign_leader write setalign_leader;
Public property align_glue: widgetalignmodety read falign_glue write setalign_glue default wam_none;
Public property place_mindist: integer read fplace_mindist write setplace_mindist default 0;
Public property place_maxdist: integer read fplace_maxdist write setplace_maxdist default bigint;
Public property place_mode: widgetalignmodety read fplace_mode write setplace_mode default wam_start;
Public property place_options: placeoptionsty read fplace_options write setplace_options default [];
Public property onbeforelayout: layoutereventty read fonbeforelayout write fonbeforelayout;
Public property onafterlayout: layoutereventty read fonafterlayout write fonafterlayout;
Published property visible default true;
Published property optionswidget default defaultgroupboxoptionswidget;

Description

Methods

Protected procedure scalebasechanged(const sender: twidget); override;

This item has no description.

Protected function scalesizeref: sizety;

This item has no description.

Protected function childrenleft: integer;

This item has no description.

Protected function childrentop: integer;

This item has no description.

Protected function childrenright: integer;

This item has no description.

Protected function childrenbottom: integer;

This item has no description.

Protected function childrenwidth: integer;

This item has no description.

Protected function childrenheight: integer;

This item has no description.

Protected function childrenminwidth: integer;

This item has no description.

Protected function childrenminheight: integer;

This item has no description.

Protected procedure scalesizerefchanged;

This item has no description.

Protected procedure updatescalesizeref;

This item has no description.

Protected procedure delayedupdatelayout();

This item has no description.

Protected procedure checkwidgetinfo();

This item has no description.

Protected procedure updatelayout;

This item has no description.

Protected procedure readstate(reader: treader); override;

This item has no description.

Protected procedure loaded; override;

This item has no description.

Protected procedure fontchanged; override;

This item has no description.

Protected procedure widgetregionchanged(const sender: twidget); override;

This item has no description.

Protected procedure childclientrectchanged(const sender: twidget); override;

This item has no description.

Protected procedure childautosizechanged(const sender: twidget); override;

This item has no description.

Protected procedure clientrectchanged; override;

This item has no description.

Protected function calcminscrollsize: sizety; override;

This item has no description.

Protected procedure registerchildwidget(const child: twidget); override;

This item has no description.

Protected procedure unregisterchildwidget(const child: twidget); override;

This item has no description.

Protected function widgetinfoindex(const awidget: twidget): integer;

This item has no description.

Protected procedure updatewidgetinfo(var ainfo: widgetlayoutinfoty; const awidget: twidget; const force: boolean = false);

This item has no description.

Protected procedure doasyncevent(var atag: integer); override;

This item has no description.

Public constructor create(aowner: tcomponent); override;

This item has no description.

Properties

Public property optionslayout: layoutoptionsty read foptionslayout write setoptionslayout default defaultlayoutoptions;

This item has no description.

Public property align_mode: widgetalignmodety read falign_mode write setalign_mode default wam_center;

This item has no description.

Public property align_leader: twidget read falign_leader write setalign_leader;

This item has no description.

Public property align_glue: widgetalignmodety read falign_glue write setalign_glue default wam_none;

This item has no description.

Public property place_mindist: integer read fplace_mindist write setplace_mindist default 0;

This item has no description.

Public property place_maxdist: integer read fplace_maxdist write setplace_maxdist default bigint;

This item has no description.

Public property place_mode: widgetalignmodety read fplace_mode write setplace_mode default wam_start;

This item has no description.

Public property place_options: placeoptionsty read fplace_options write setplace_options default [];

This item has no description.

Public property onbeforelayout: layoutereventty read fonbeforelayout write fonbeforelayout;

This item has no description.

Public property onafterlayout: layoutereventty read fonafterlayout write fonafterlayout;

This item has no description.

Published property visible default true;

This item has no description.

Published property optionswidget default defaultgroupboxoptionswidget;

This item has no description.


Generated by PasDoc 1.0.4.