[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
The base class for all windowed controls
Source position: controls.pp line 1499
type TWinControl = class(TControl) |
||
protected |
||
|
||
procedure AdjustClientRect(); virtual; |
|
AdjustClientRect - method for adjusting the size and position of the client control |
procedure CreateControlAlignList(); |
|
CreateControlAlignList - creates a list of the controls that are aligned with the present window control |
procedure AlignControls(); virtual; |
|
AlignControls - align the specified control with a given client rectangle |
function DoAlignChildControls(); virtual; |
|
DoAlignChildControls - method for aligning child controls from a list; returns True if successful |
procedure DoChildSizingChange(); virtual; |
|
DoChildSizingChange - method for changing size of a child component |
procedure ResizeDelayedAutoSizeChildren; virtual; |
|
ResizeDelayedAutoSizeChildren - method for re-sizing children, using autosize delayed |
procedure InvalidatePreferredChildSizes; |
|
InvalidatePreferredChildSizes - renders the preferred child sizes invalid |
function CanTab; override; |
|
CanTab - if True, the Tab key can be used to navigate to this control |
procedure CMShowingChanged(); message; |
|
|
procedure CMVisibleChanged(); message; |
|
|
procedure DoSendShowHideToInterface; virtual; |
||
procedure ControlsAligned; virtual; |
|
ControlsAligned - called by AlignControls after aligning controls |
procedure DoSendBoundsToInterface; virtual; |
|
DoSendBoundsToInterface - sends information about the control's bounds to the interface |
procedure RealizeBounds; virtual; |
|
RealizeBounds - checks for changes and calls DoSendBoundsToInterface |
procedure RealizeBoundsRecursive; |
|
|
procedure CreateSubClass(); |
|
|
procedure DoConstraintsChange(); override; |
|
Procedure to execute a change in the control's constraints |
procedure DoSetBounds(); override; |
|
Perform the actual setting of the boundary rectangle |
procedure DoAutoSize; override; |
|
DoAutoSize - method for actually performing the AutoSize |
procedure CalculatePreferredSize(); override; |
|
CalculatePreferredSize - find default/preferred height and width |
procedure GetChildren(); override; |
|
|
function ChildClassAllowed(); override; |
|
ChildClassAllowed - returns True if the given child class is permitted |
procedure PaintControls(); |
|
PaintControls - method for painting a series of controls |
procedure PaintHandler(); |
|
PaintHandler - message handler for painting |
procedure PaintWindow(); virtual; |
|
PaintWindow - method for painting a window |
procedure CreateBrush; virtual; |
|
CreateBrush - method to create a brush for painting |
procedure CMEnabledChanged(); message; |
|
|
procedure CMShowHintChanged(); message; |
|
|
procedure CMBiDiModeChanged(); message; |
|
|
procedure WMEraseBkgnd(); message; |
|
|
procedure WMNotify(); message; |
|
|
procedure WMSetFocus(); message; |
|
|
procedure WMKillFocus(); message; |
|
|
procedure WMShowWindow(); message; |
|
|
procedure WMEnter(); message; |
|
|
procedure WMExit(); message; |
|
|
procedure WMKeyDown(); message; |
|
|
procedure WMSysKeyDown(); message; |
|
|
procedure WMKeyUp(); message; |
|
|
procedure WMSysKeyUp(); message; |
|
|
procedure WMChar(); message; |
|
|
procedure WMSysChar(); message; |
|
|
procedure WMPaint(); message; |
|
|
procedure WMDestroy(); message; |
|
|
procedure WMMove(); message; |
|
|
procedure WMSize(); message; |
|
|
procedure CNKeyDown(); message; |
|
|
procedure CNSysKeyDown(); message; |
|
|
procedure CNKeyUp(); message; |
|
|
procedure CNSysKeyUp(); message; |
|
|
procedure CNChar(); message; |
|
|
function DoDragMsg(); override; |
|
|
function DoDockClientMsg(); virtual; |
|
|
function DoUndockClientMsg(); virtual; |
|
|
procedure DoAddDockClient(); dynamic; |
|
|
procedure DockOver(); dynamic; |
|
DockOver - software emulation of the OnDockOver event |
procedure DoDockOver(); dynamic; |
|
DoDockOver - perform the DockOver method |
procedure DoRemoveDockClient(); dynamic; |
|
DoRemoveDockClient - method for removing a docking client |
function DoUnDock(); dynamic; |
|
DoUnDock - software emulation of the OnUnDock evnet |
procedure GetSiteInfo(); dynamic; |
|
GetSiteInfo - software emulation of the OnGetSiteInfo event |
procedure ReloadDockedControl(); dynamic; |
|
ReloadDockedControl - load the docked control again (it may have become misaligned during other processes) |
function CreateDockManager; dynamic; |
|
CreateDockManager - returns a new Dock Manager |
procedure DoFloatMsg(); override; |
|
Sends a message to the operating system about the floating status of ADockSource |
procedure DoGetDockCaption(); virtual; |
|
DoGetDockCaption - find the caption for the docked control |
procedure DoEnter; dynamic; |
|
DoEnter - perform the action for the OnEnter event handleer |
procedure DoExit; dynamic; |
|
DoExit - perform the action for the OnExit event handler |
function DoKeyDownBeforeInterface(); |
|
|
function DoRemainingKeyDown(); |
|
|
function DoRemainingKeyUp(); |
|
|
function DoKeyPress(); |
|
|
function DoUTF8KeyPress(); dynamic; |
|
|
function DoKeyUpBeforeInterface(); |
|
|
function ChildKey(); dynamic; |
|
|
function SendDialogChar(); |
|
|
function DialogChar(); override; |
|
DialogChar - a LCL Key Message; returns True if a Dialog character has an associated message |
procedure ControlKeyDown(); dynamic; |
|
ControlKeyDown - contains the set of special keys (shift, control, alt, meta) that are pressed |
procedure ControlKeyUp(); dynamic; |
|
ControlKeyUp - contains the set of special keys (shift, control, alt, meta) that are not pressed ('up') |
procedure KeyDownBeforeInterface(); dynamic; |
|
|
procedure KeyDownAfterInterface(); dynamic; |
|
|
procedure KeyPress(); dynamic; |
|
KeyPress - simulates the action of pressing the specified key |
procedure KeyUpBeforeInterface(); dynamic; |
|
|
procedure KeyUpAfterInterface(); dynamic; |
|
|
procedure UTF8KeyPress(); dynamic; |
|
|
function FindNextControl(); |
|
FindNextControl - returns the next control on the list; optionally checks if it is a TabStop or a parent control |
procedure SelectFirst; |
|
SelectFirst - select the first control on the list |
function RealGetText; override; |
|
Function to get a text-string associated with the control |
function GetBorderStyle; |
|
GetBorderStyle - returns the style of the border |
function GetClientOrigin; override; |
|
Find the origin (top left pixel) of the client control |
function GetClientRect; override; |
|
Visual size of client area |
function GetControlOrigin; override; |
|
Find the origin (top left pixel) of this control |
function GetDeviceContext(); override; |
|
|
function IsControlMouseMsg(); |
|
|
function ParentHandlesAllocated; override; |
|
|
procedure CreateHandle; virtual; |
|
|
procedure CreateParams(); virtual; |
|
CreateParams - create parameters for this windowed class |
procedure CreateWnd; virtual; |
|
Creates the Window |
procedure DestroyHandle; virtual; |
|
DestroyHandle - removes the handle for this window |
procedure DestroyWnd; virtual; |
|
DestroyWnd - destroy the window for this control |
procedure DoFlipChildren; dynamic; |
|
|
procedure FinalizeWnd; virtual; |
|
FinalizeWnd - getting ready to remove window (gets called before the Handle is destroyed) |
procedure FixupTabList; |
|
|
procedure FontChanged(); override; |
|
|
procedure InitializeWnd; virtual; |
|
InitializeWnd - initialise the window for this control |
procedure Loaded; override; |
|
|
procedure FormEndUpdated; override; |
|
|
procedure MainWndProc(); |
|
|
procedure ParentFormHandleInitialized; override; |
|
ParentFormHandleInitialized - called by ChildHandlesCreated of parent form |
procedure ChildHandlesCreated; virtual; |
|
|
procedure RealSetText(); override; |
|
Procedure to store text associated with the control in a string |
procedure RemoveFocus(); |
|
|
procedure SendMoveSizeMessages(); override; |
|
Send a message to the system if the size and/or position of the control change |
procedure SetBorderStyle(); virtual; |
|
|
procedure SetColor(); override; |
|
Set up the colour to be used by the control |
procedure SetChildZPosition(); |
|
|
procedure ShowControl(); virtual; |
|
|
procedure Update; override; |
|
Perform the Update method specified by the parent control (if there is one) |
procedure UpdateControlState; |
|
|
procedure UpdateShowing; virtual; |
|
|
procedure WndProc(); override; |
|
|
procedure WSSetText(); virtual; |
|
WSSetText - writes the name of the current widget set to a local variable |
property BorderStyle: TBorderStyle; [rw] |
|
BorderStyle - none, or single |
property OnGetSiteInfo: TGetSiteInfoEvent; [rw] |
|
OnGetSiteInfo - event handler for finding out information about the (docking) site |
property OnGetDockCaption: TGetDockCaptionEvent; [rw] |
|
OnGetDockCaption - event handler to find the caption for the docked control |
public |
||
property BorderWidth: TBorderWidth; [rw] |
|
Property to determine width of the window's border |
property BoundsLockCount: Integer; [r] |
|
Finds how many of the Bounds are locked |
|
Find which type of brush to use for drawing the control |
|
property CachedClientHeight: Integer; [r] |
|
Stored value of client height |
property CachedClientWidth: Integer; [r] |
|
Stored value of Client Width |
property ChildSizing: TControlChildSizing; [rw] |
|
Definitions of how any child control is to be sized |
property ControlCount: Integer; [r] |
|
The number of controls associated with this window |
|
The indexed list of controls found in this window |
|
property DefWndProc: Pointer; [rw] |
|
The default procedure to be associated with the window |
property DockClientCount: Integer; [r] |
|
The number of clients to which this control is docked |
property DockClients: TControl; [r] |
|
The indexed list of dock clients of this window |
property DockManager: TDockManager; [rw] |
|
Property that actually controls the docking process |
property DockSite: Boolean; [rw] |
|
Is this a dock site? Default false |
property DoubleBuffered: Boolean; [rw] |
|
Are the contents of this window to be double buffered? |
|
Operating System Handle for identifying and manipulating this window |
|
property IsResizing: Boolean; [r] |
|
Is the window being re-sized? |
|
The place this control occupies in the list of tabs |
|
property TabStop: Boolean; [rw] |
|
Is the control in the sequence of controls accessed by successive presses of the Tab key? |
property OnDockDrop: TDockDropEvent; [rw] |
|
Event handler for dropping a control in a docked position |
property OnDockOver: TDockOverEvent; [rw] |
|
Event handler for docking a control over another control |
property OnEnter: TNotifyEvent; [rw] |
|
OnEnter - event handler for when the mouse enters the control, and the control receives focus |
property OnExit: TNotifyEvent; [rw] |
|
OnExit - event handler for when the mouse leaves the control and it loses focus |
|
OnKeyDown - event handler for instance when key is down while control has focus |
|
property OnKeyPress: TKeyPressEvent; [rw] |
|
OnKeyPress - event controller for a key being pressed while the control has focus. To properly handle national chars use UTF8KeyPress instead. |
|
OnKeyUp - event handler for instance when a key is up (not pressed) while the control has focus |
|
property OnUnDock: TUnDockEvent; [rw] |
|
OnUnDock - event handler for control becoming disconnected (undocked) from parent |
property OnUTF8KeyPress: TUTF8KeyPressEvent; [rw] |
|
UTF8KeyPress - event controller for a key being pressed while the control has focus. |
property ParentCtl3D: Boolean; [rw] |
|
ParentCtl3D - does it inherit Ctl3D properties from parents? (Deprecated) |
property Showing: Boolean; [r] |
|
Is the window showing? (similar to Visible in other contexts) |
property UseDockManager: Boolean; [rw] |
|
Use a dock manager to control docking? (default false) |
property VisibleDockClientCount: Integer; [r] |
|
The number of visible client controls for docking |
function AutoSizeDelayed; override; |
|
Auto-sizing has been delayed until some other process is complete |
procedure BeginUpdateBounds; |
|
|
procedure EndUpdateBounds; |
|
|
procedure LockRealizeBounds; |
|
|
procedure UnlockRealizeBounds; |
|
|
function ControlAtPos(); |
|
|
function ContainsControl(); |
|
This component contains a specified control |
procedure DoAdjustClientRectChange; |
|
DoAdjustClientRectChange - perform any adjustments needed when the client rectangle changes |
procedure InvalidateClientRectCache(); |
|
InvalidateClientRectCache - render invalid any information in the client rectangle cache |
function ClientRectNeedsInterfaceUpdate; |
|
ClientRectNeedsInterfaceUpdate - True if update needed |
procedure SetBounds(); override; |
|
SetBounds - set the bounds (top. left, height, width) for the window |
function GetChildsRect(); override; |
|
Gets the rectangular co-ordinates for a child control |
procedure DisableAlign; |
|
DisableAlign - turn off any alignment |
procedure EnableAlign; |
|
EnableAlign - turn on the alignment process |
procedure ReAlign; |
|
ReAlign - realign all children |
procedure WriteLayoutDebugReport(); override; |
|
Used for debugging |
constructor Create(); override; |
||
constructor CreateParented(); |
|
CreateParented - constructor for a window that is the child of a specified parent |
function CreateParentedControl(); |
|
CreateParentedControl - returns a newly created window control that has a specified window as its parent |
destructor Destroy; override; |
||
procedure DockDrop(); dynamic; |
|
DockDrop - drop a dragged object into its docking position |
function CanFocus; virtual; |
|
CanFocus - is the current window allowed to receive focus? |
function GetControlIndex(); |
|
GetControlIndex - find the index value for the given control |
procedure SetControlIndex(); |
|
SetControlIndex - set a new index value for the given control |
function Focused; virtual; |
|
Focused - is the current window receiving focus? |
function PerformTab(); virtual; |
|
PerformTab - perform a tab - is it in the forward direction? |
function ControlByName(); |
|
ControlByName - returns the identity of a control whose name is given as an argument |
procedure SelectNext(); |
|
SelectNext - move to the next windowed control and give it focus |
procedure SetTempCursor(); override; |
|
SetTempCursor - set a temporary cursor |
procedure BroadCast(); |
|
BroadCast - send ToAllMessage to all recipients |
procedure NotifyControls(); |
|
NotifyControls - send Msg (a message) to all controls |
procedure DefaultHandler(); override; |
|
|
function GetTextLen; override; |
|
Get the length of the specified text |
procedure Invalidate; override; |
|
Render this control non-valid |
procedure AddControl; virtual; |
|
AddControl - add this control to the list of controls |
procedure InsertControl(); |
|
|
procedure RemoveControl(); |
|
RemoveControl - remove the specified control from the list |
procedure Repaint; override; |
|
Repaint the control, ie refill its canvas |
procedure SetFocus; virtual; |
|
SetFocus - give the current control the focus |
function FindChildControl(); |
|
FindChildControl - find what controls are descended from the current one |
procedure FlipChildren(); dynamic; |
|
|
function GetDockCaption(); virtual; |
|
GetDockCaption - get the caption for the specified docked control |
procedure GetTabOrderList(); |
|
GetTabOrderList - find the list with the Tab Order |
function HandleAllocated; |
|
HandleAllocated - find if the operating system has allocated a handle to this control |
procedure HandleNeeded; |
|
HandleNeeded - tell the Operating System that this control requires a handle |
function BrushCreated; |
|
BrushCreated - has a brush been created for this control? |
procedure EraseBackground(); virtual; |
|
EraseBackground - remove all material from the background |
procedure KeyDown(); dynamic; |
|
KeyDown - emulate the action of pressing the specified key (makes OnKeyDown respond) |
procedure KeyUp(); dynamic; |
|
KeyUp - emulates the action of a key being released (makes OnKeyUp respond) |
function IntfUTF8KeyPress(); dynamic; |
|
|
procedure PaintTo(); |
|
PaintTo - Paint to a specified position on the canvas |
procedure SetShape(); |
|
SetShape - make the specified shape appear on the Window |
end; |
|
The base class for all windowed controls |
|
| | ||
|
TControl - the main ancestor class for visual controls. |
|
| | ||
TLCLComponent |
||
? | ||
TObject |
Defines many of the properties inherited by child classes, particularly those related to size, position, bounds, docking, the responses to mouse movements and key presses.
Defines procedures and functions related to windowed controls, some of which override virtual methods defined in ancestor classes.
|
TControl - the main ancestor class for visual controls. |
lazarus-ccr.sourceforge.net |