.comment-link {margin-left:.6em;}

Thursday, August 23, 2007

 

twolheader

TWOLHeader object
Unit: WOLGUI32.
Descendant of TWOLVisualControl. A representation of a WOL object, A basic header of the gui in use
Used currently only in Windows.

Public Methods and Events:

constructor Create (AOwner: TWOLRoot); override;
destructor Destroy; override;
procedure CreateGUIParams (to var aParams: TWOLParams; const wClass: TWOLClassType); override;
procedure CreateWnd (to var aParams: TWOLParams); override;
procedure RecreateWnd; override;
procedure AllocResources; override;
procedure FreeResources; override;
function WndPaint (to var Message: TWOLMessage): Boolean; override;
function WndMouse (to var Message: TWOLMessage): Boolean; override;
function WndNotify (to var Message: TWOLMessage): Boolean; override;
function WndProc (to var Message: TWOLMessage): Boolean; override;

Public properties and Events:

Sections: TWOLHeaderSections (For Reading and Writing)
Property that represents the sections of header (heading)

OnSecClick: TWOLConstEvent (For Reading and Writing)
Event that happens when a section will is clicked.

OnSecResize: TWOLPosXYEvent (For Reading and Writing)
Event that happens when a section is redimensioned.

OnSecTrack: TWOLPosXYFEvent (For Reading and Writing)
Event that happens when a section is dragged.

OnHeaderClick: TWOLEvent (For Reading and Writing)
Event that happens when header is clicked.

HotTrack: Boolean (For Reading and Writing)
Property that is illuminated when a mouse is passed on it.

OnClick
OnMouseMove
OnDblClick
Ctrl3D
Border
TextAlign
WindowAlign
Left
Top
Width
Height
Color
Font
Cursor
Visible
Enabled
Hint
Tabstop
TabOrder

TWOLHEADERSECTIONS
Each section of heading is contained in the Sections property of the TWOLHeader object.
TWOLHEADERSECTIONS is a basic class with the following methods:

constructor Create (AOwner: TWOLHeader);
Method used to construct an object that keeps all the sections that will be used in the header. One of them is created and established when header is created.
destructor Destroy; override;
procedure InsertItem (Value: String);
Method used to insert a section in the header with the specified text.
procedure DeleteItem (Index: Integer);
Method used to erase a section of header of the specified index.

TWOLHEADERSECTIONS presents the following properties:

Count: Integer (Only for Reading)
returns the amount sections stored in the class.
Width [Index: Integer]: Integer (For Reading and Writing)
It returns/modifies the width of the section indicated for index.
Text [Index: Integer]: string (For Reading and Writing)
It returns/modifies the text of the section indicated for index.
Alignment [Index: Integer]: TWOLTextAlign (For Reading and Writing)
It returns/modifies the alignment of the text of the section indicated for index.
Bitmap [Index: Integer]: TWOLHBITMAP (For Reading and Writing)
It returns/modifies the handle of bitmap associated to the section indicated in index.

Labels: ,


Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?