[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Implements a section displayed on a TCustomHeaderControl / THeaderControl instance.
Source position: comctrls.pp line 3930
type THeaderSection = class(TCollectionItem) |
||
protected |
||
function GetDisplayName; override; |
|
Gets the value for the DisplayName property. |
public |
||
constructor Create(); override; |
|
Constructor for the class instance. |
procedure Assign(); override; |
|
Implements object persistence for the THeaderSection type. |
|
The position of the left boundary of the section. |
|
|
The position of the right boundary of the section. |
|
property State: THeaderSectionState; [rw] |
|
State - whether normal, hot (i.e. mouse hovers over it ready to be selected) or pressed (selected). |
published |
||
property Alignment: TAlignment; [rw] |
|
Alignment - whether text is to be left or right justified or centered. |
property ImageIndex: TImageIndex; [rw] |
|
Ordinal position for the image displayed for the header section. |
|
Maximum width in pixels allowed for the header section. |
|
|
Minimum width in pixels allowed for the header section. |
|
|
The text displayed on the header section. |
|
|
Total width in pixels for the text and image on the header section. |
|
property Visible: Boolean; [rw] |
|
Indicates if the section is visible in the header control. |
property OriginalIndex: Integer; [r] |
|
Index position which does not change when the user reorders the sections on a header control. |
end; |
|
Implements a section displayed on a TCustomHeaderControl / THeaderControl instance. |
|
| | ||
| | ||
| | ||
THeaderSection is a TCollectionItem descendant which implements a section displayed on a TCustomHeaderControl / THeaderControl instance. THeaderSection is the type added and maintained in the THeaderSections collection, and used in the TCustomHeaderControl.Sections property.
THeaderSection has properties which identify its visual characteristics. This includes the text displayed for the section, its alignment, minimum and maximum widths, and an index for an optional image. Other properties contain run-time information about the section, including its left and right coordinates and its display state.
THeaderSection instances are normally created at design-time and edited using the IDE object inspector. They can be created at run-time using methods in the THeaderSections collection, and edited in code.
|
Implements a collection for sections in a TCustomHeaderControl control. |
|
|
Sections - the short segments of the header separated by vertical bars that function as the elementary selection units of the header. |
Version 3.2 | Generated 2024-02-25 | Home |