Class tcustomspacer

Unit

Declaration

type tcustomspacer = class(tscalingwidget)

Description

An invisible-by-default widget acting as a positional link between surrounding widgets: set linkleft/linktop/ linkright/linkbottom to some of the widgets around it, and moving or resizing the spacer repositions those linked widgets to keep the configured dist_* margins (see spaceroptionty for the exact rules).

Hierarchy

Overview

Methods

Protected procedure loaded; override;
Protected procedure parentwidgetregionchanged(const sender: twidget); override;
Public constructor create(aowner: tcomponent); override;

Properties

Public property linkleft: twidget read flinkleft write setlinkleft;
Public property linktop: twidget read flinktop write setlinktop;
Public property linkright: twidget read flinkright write setlinkright;
Public property linkbottom: twidget read flinkbottom write setlinkbottom;
Public property dist_left: integer read fdist_left write setdist_left default 0;
Public property dist_top: integer read fdist_top write setdist_top default 0;
Public property dist_right: integer read fdist_right write setdist_right default 0;
Public property dist_bottom: integer read fdist_bottom write setdist_bottom default 0;
Public property options: spaceroptionsty read foptions write foptions default [];
Public property optionswidget default defaultoptionswidgetnofocus;
Published property visible default false;

Description

Methods

Protected procedure loaded; override;

This item has no description.

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

This item has no description.

Public constructor create(aowner: tcomponent); override;

This item has no description.

Properties

Public property linkleft: twidget read flinkleft write setlinkleft;

This item has no description.

Public property linktop: twidget read flinktop write setlinktop;

This item has no description.

Public property linkright: twidget read flinkright write setlinkright;

This item has no description.

Public property linkbottom: twidget read flinkbottom write setlinkbottom;

This item has no description.

Public property dist_left: integer read fdist_left write setdist_left default 0;

This item has no description.

Public property dist_top: integer read fdist_top write setdist_top default 0;

This item has no description.

Public property dist_right: integer read fdist_right write setdist_right default 0;

This item has no description.

Public property dist_bottom: integer read fdist_bottom write setdist_bottom default 0;

This item has no description.

Public property options: spaceroptionsty read foptions write foptions default [];

Links widget positions through its link* properties, normally invisible; its own position follows the leading linked widget (linkleft/linktop) unless spao_glueright/ spao_gluebottom is set, in which case it instead follows the trailing one (linkright/linkbottom). With spao_glueright False: repositioning/resizing linkleft shifts the whole linked group; if an_right is set on linkright, the spacer instead resizes linkright (keeping its right margin), otherwise it shifts linkright (keeping its width). With spao_glueright True, the same holds symmetrically for linkright driving the group, and an_left on linkleft. spao_gluebottom works the same way vertically, with linktop/linkbottom and an_bottom/an_top. Compare with tsplitter, which is normally visible, can be user-dragged, and can save its position to a tstatfile; a tspacer is instead driven only by its linked widgets.

Public property optionswidget default defaultoptionswidgetnofocus;

This item has no description.

Published property visible default false;

This item has no description.


Generated by PasDoc 1.0.4.