Class TAdComponent

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdComponent = class(TAdPersistent)

Description

no description available, TAdPersistent description follows

A replacement for TPersistent from classes.

Hierarchy

Overview

Methods

Public procedure Draw;
Public procedure Move(TimeGap:double);
Public procedure AddComponent(AComponent:TAdComponent); virtual;
Public procedure Clear;
Public function Click(X,Y:integer) : boolean;
Public function DblClick(X,Y:integer) : boolean;
Public function MouseMove(Shift: TAdShiftState; X, Y: Integer) : boolean;
Public function MouseDown(Button: TAdMouseButton; Shift: TAdShiftState; X, Y: Integer) : boolean;
Public function MouseUp(Button: TAdMouseButton; Shift: TAdShiftState; X, Y: Integer) : boolean;
Public function MouseWheel(Shift: TAdShiftState; WheelDelta: Integer; X, Y: Integer) : boolean;
Public function KeyPress(Key: Char) : boolean;
Public function KeyDown(Key: Word; Shift:TAdShiftState) : boolean;
Public function KeyUp(Key: Word; Shift:TAdShiftState) : boolean;
Public function ClientToScreen(p:TAdPoint):TAdPoint;
Public function ScreenToClient(p:TAdPoint):TAdPoint;
Public constructor Create(AParent:TAdComponent); virtual;
Public destructor Destroy; override;
Public procedure SaveToFile(AFile:string);
Public procedure LoadFromFile(AFile:string);
Public procedure SaveToStream(AStream:TStream);
Public procedure LoadFromStream(AStream:TStream);
Public procedure LoadFromXML(aroot:TAdSimpleXMLElem); virtual;
Public function SaveToXML(aroot:TAdSimpleXMLElems):TAdSimpleXMLElem; virtual;
Public procedure BringToFront;
Public procedure SendToBack;
Public function GetUniqueName(AName:string; AForceNumber:boolean=false):string;
Public function NameExists(AName:string):boolean;
Public function FindComponent(AName:string):TAdComponent;
Public function OwnsComponent(AComponent:TAdComponent):boolean;
Public procedure SetFocused;

Properties

Public property Skin: TAdSkin read FSkin write SetSkin;
Public property Parent: TAdComponent read FParent write FParent;
Public property Components: TAdComponents read FComponents;
Public property AdDraw: TAdDraw read FAdDraw write SetAdDraw;
Public property DesignMode: boolean read FDesignMode write SetDesignMode;
Public property BoundsRect: TAdRect read GetBoundsRect;
Public property ClientRect: TAdRect read GetClientRect;
Public property CurrentCursor: string read FCurrentCursor write SetCurrentCursor;
Public property HintWnd: TAdHint read FHintWnd write SetHintWnd;
Public property GridX: integer read FGridY write SetGridY;
Public property GridY: integer read FGridX write SetGridX;
Public property Grid: boolean read FGrid write SetGrid;
Public property FontColor: TGUIColor read FFontColor write FFontColor;
Public property Font: TAdFont read GetFont write SetFont;
Public property FontName: string read FFontName write SetFontName;
Public property Fonts: TAdFontList read FFonts write SetFonts;
Public property FocusedComponent: TAdComponent read GetFocusedComponent;
Public property SubComponent: boolean read FSubComponent write FSubComponent;
Published property Name: string read FName write SetName;
Published property Cursor: string read FCursor write FCursor;
Published property X: integer read FX write FX;
Published property Y: integer read FY write FY;
Published property Width: integer read FWidth write SetWidth;
Published property Height: integer read FHeight write SetHeight;
Published property Alpha: byte read FAlpha write FAlpha;
Published property Visible: boolean read FVisible write FVisible;
Published property Enabled: boolean read FEnabled write FEnabled;
Published property Hint: string read FHint write FHint;
Published property ShowHint: boolean read FShowHint write FShowHint;
Published property OnClick: TAdNotifyEvent read FOnClick write FOnClick;
Published property OnDblClick: TAdNotifyEvent read FOnDblClick write FOnDblClick;
Published property OnMouseMove: TAdMouseMoveEvent read FOnMouseMove write FOnMouseMove;
Published property OnMouseUp: TAdMouseEvent read FOnMouseUp write FOnMouseUp;
Published property OnMouseDown: TAdMouseEvent read FOnMouseDown write FOnMouseDown;
Published property OnMouseEnter: TAdNotifyEvent read FOnMouseEnter write FOnMouseEnter;
Published property OnMouseLeave: TAdNotifyEvent read FOnMouseLeave write FOnMouseLeave;
Published property OnMouseWheel: TAdMouseWheelEvent read FOnMouseWheel write FOnMouseWheel;
Published property OnKeyPress: TAdKeyPressEvent read FOnKeyPress write FOnKeyPress;
Published property OnKeyUp: TAdKeyEvent read FOnKeyUp write FOnKeyUp;
Published property OnKeyDown: TAdKeyEvent read FOnKeyDown write FOnKeyDown;

Description

Methods

Public procedure Draw;
 
Public procedure Move(TimeGap:double);
 
Public procedure AddComponent(AComponent:TAdComponent); virtual;
 
Public procedure Clear;
 
Public function Click(X,Y:integer) : boolean;
 
Public function DblClick(X,Y:integer) : boolean;
 
Public function MouseMove(Shift: TAdShiftState; X, Y: Integer) : boolean;
 
Public function MouseDown(Button: TAdMouseButton; Shift: TAdShiftState; X, Y: Integer) : boolean;
 
Public function MouseUp(Button: TAdMouseButton; Shift: TAdShiftState; X, Y: Integer) : boolean;
 
Public function MouseWheel(Shift: TAdShiftState; WheelDelta: Integer; X, Y: Integer) : boolean;
 
Public function KeyPress(Key: Char) : boolean;
 
Public function KeyDown(Key: Word; Shift:TAdShiftState) : boolean;
 
Public function KeyUp(Key: Word; Shift:TAdShiftState) : boolean;
 
Public function ClientToScreen(p:TAdPoint):TAdPoint;
 
Public function ScreenToClient(p:TAdPoint):TAdPoint;
 
Public constructor Create(AParent:TAdComponent); virtual;
 
Public destructor Destroy; override;
 
Public procedure SaveToFile(AFile:string);
 
Public procedure LoadFromFile(AFile:string);
 
Public procedure SaveToStream(AStream:TStream);
 
Public procedure LoadFromStream(AStream:TStream);
 
Public procedure LoadFromXML(aroot:TAdSimpleXMLElem); virtual;
 
Public function SaveToXML(aroot:TAdSimpleXMLElems):TAdSimpleXMLElem; virtual;
 
Public procedure BringToFront;
 
Public procedure SendToBack;
 
Public function GetUniqueName(AName:string; AForceNumber:boolean=false):string;
 
Public function NameExists(AName:string):boolean;
 
Public function FindComponent(AName:string):TAdComponent;
 
Public function OwnsComponent(AComponent:TAdComponent):boolean;
 
Public procedure SetFocused;
 

Properties

Public property Skin: TAdSkin read FSkin write SetSkin;
 
Public property Parent: TAdComponent read FParent write FParent;
 
Public property Components: TAdComponents read FComponents;
 
Public property AdDraw: TAdDraw read FAdDraw write SetAdDraw;
 
Public property DesignMode: boolean read FDesignMode write SetDesignMode;
 
Public property BoundsRect: TAdRect read GetBoundsRect;
 
Public property ClientRect: TAdRect read GetClientRect;
 
Public property CurrentCursor: string read FCurrentCursor write SetCurrentCursor;
 
Public property HintWnd: TAdHint read FHintWnd write SetHintWnd;
 
Public property GridX: integer read FGridY write SetGridY;
 
Public property GridY: integer read FGridX write SetGridX;
 
Public property Grid: boolean read FGrid write SetGrid;
 
Public property FontColor: TGUIColor read FFontColor write FFontColor;
 
Public property Font: TAdFont read GetFont write SetFont;
 
Public property FontName: string read FFontName write SetFontName;
 
Public property Fonts: TAdFontList read FFonts write SetFonts;
 
Public property FocusedComponent: TAdComponent read GetFocusedComponent;
 
Public property SubComponent: boolean read FSubComponent write FSubComponent;
 
Published property Name: string read FName write SetName;
 
Published property Cursor: string read FCursor write FCursor;
 
Published property X: integer read FX write FX;
 
Published property Y: integer read FY write FY;
 
Published property Width: integer read FWidth write SetWidth;
 
Published property Height: integer read FHeight write SetHeight;
 
Published property Alpha: byte read FAlpha write FAlpha;
 
Published property Visible: boolean read FVisible write FVisible;
 
Published property Enabled: boolean read FEnabled write FEnabled;
 
Published property Hint: string read FHint write FHint;
 
Published property ShowHint: boolean read FShowHint write FShowHint;
 
Published property OnClick: TAdNotifyEvent read FOnClick write FOnClick;
 
Published property OnDblClick: TAdNotifyEvent read FOnDblClick write FOnDblClick;
 
Published property OnMouseMove: TAdMouseMoveEvent read FOnMouseMove write FOnMouseMove;
 
Published property OnMouseUp: TAdMouseEvent read FOnMouseUp write FOnMouseUp;
 
Published property OnMouseDown: TAdMouseEvent read FOnMouseDown write FOnMouseDown;
 
Published property OnMouseEnter: TAdNotifyEvent read FOnMouseEnter write FOnMouseEnter;
 
Published property OnMouseLeave: TAdNotifyEvent read FOnMouseLeave write FOnMouseLeave;
 
Published property OnMouseWheel: TAdMouseWheelEvent read FOnMouseWheel write FOnMouseWheel;
 
Published property OnKeyPress: TAdKeyPressEvent read FOnKeyPress write FOnKeyPress;
 
Published property OnKeyUp: TAdKeyEvent read FOnKeyUp write FOnKeyUp;
 
Published property OnKeyDown: TAdKeyEvent read FOnKeyDown write FOnKeyDown;
 

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:31:59