[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TControlBorderSpacing - the spacing around a Control
Source position: controls.pp line 578
type TControlBorderSpacing = class(TPersistent) |
||
protected |
||
procedure Change(); dynamic; |
|
|
public |
||
constructor Create(); |
|
|
procedure Assign(); override; |
|
|
procedure AssignTo(); override; |
|
|
function IsEqual(); |
|
|
procedure GetSpaceAround(); |
|
|
function GetSpace(); |
|
|
function GetSideSpace(); |
|
|
|
The control for which border spacing is defined |
|
property Space: Integer; [rw] |
|
The kind of anchor to used in calculating spacing |
published |
||
property OnChange: TNotifyEvent; [rw] |
|
Event handler for a change in border spacing |
property Left: TSpacingSize; [rw] |
|
The size of the space at the left border |
property Top: TSpacingSize; [rw] |
|
The size of the space at the top border |
property Right: TSpacingSize; [rw] |
|
The size of the space at the right border |
property Bottom: TSpacingSize; [rw] |
|
The size of the space at the bottom border |
property Around: TSpacingSize; [rw] |
|
The size of the space all around the control |
property InnerBorder: Integer; [rws] |
|
The size of the inner border around the control |
property CellAlignHorizontal: TControlCellAlign; [rw] |
|
|
property CellAlignVertical: TControlCellAlign; [rw] |
|
|
end; |
|
TControlBorderSpacing - the spacing around a Control |
|
| | ||
| | ||
TObject |
{ TControlBorderSpacing defines the spacing around a control. The spacing around its children and between its children is defined in TWinControl.ChildSizing. Left, Top, Right, Bottom: integer; minimum space left to the autosized control. For example: Control A lies left of control B. A has borderspacing Right=10 and B has borderspacing Left=5. Then A and B will have a minimum space of 10 between. Around: integer; same as Left, Top, Right and Bottom all at once. This will be added to the effective Left, Top, Right and Bottom. Example: Left=3 and Around=5 results in a minimum spacing to the left of 8. InnerBorder: integer; This is added to the preferred size. For example: A buttons widget returns 75x25 on GetPreferredSize. CalculatePreferredSize adds 2 times the InnerBorder to the width and height. CellAlignHorizontal, CellAlignVertical: TControlCellAlign; Used for example when the Parents.ChildSizing.Layout defines a table layout. }
lazarus-ccr.sourceforge.net |