Sign in Join
FPDoc Onlineexperiment

TControl class

In unit Controls

The base class for visible controls.

Declaration

pascal
TControl = class(TLCLComponent)

Inheritance

  1. TControl
  2. TLCLComponent
  3. TComponent

Descends from it: TGraphicControl TWinControl

Description

TControl is a TLCLComponent descendant which implements the base class for visual controls in the LCL ( Lazarus Component Library). TControl extends ancestor classes, like TLCLComponent and TComponent, with properties and methods needed to configure the appearance and behavior for the visual control and handle user interactions at run-time.

Some properties and methods are in all of its descendent classes. Others are implemented as needed in descendent classes. The properties and methods fall into categories like:

  • Appearance
  • Position and Orientation
  • Sizing and Aligning
  • Assistance and Accessibility
  • Drag and Drop
  • Docking
  • Action Support
  • Hi-DPI Awareness and Scaling
  • Handler Lists for Event Notifications
  • Window and Control Message Handling
  • Keyboard and Mouse Message Handling
  • Widgetset-specific Members and Methods

Applications do not normally create instances of TControl. It is used as an ancestor for descendent classes which implement additional features or behaviors.

TControl does not provide a window handle needed to draw the control in the underlying widgetset class. It includes a Parent property which is the windowed control where the control is hosted. It also provides the handle needed to draw the control.

Use TWinControl for a control which provides its own window handle.

See also

Properties

AutoSizingprotectedContains True while auto-sizing is in progress.
AutoSizingAllprotectedFlag to prevent recursive AutoSizing (in DoAllAutoSize).
AutoSizingLockCountprotectedInternal counter increased and decreased in the DisableAutoSizing and EnableAutoSizing methods.
ActionLinkprotectedLink to the default Action associated with this control.
DesktopFontprotectedIndicates if the desktop (system) font is used for the text displayed on this control.
DragCursorprotectedThe cursor shape shown during a drag operation.
DragKindprotectedIndicates the action performed for a drag operation: drag-and-drop or drag-and-dock.
DragModeprotectedDetermines how a drag operation is started for the control.
MouseCaptureprotectedTrue when mouse messages are currently captured by this control.
ParentBackgroundprotectedIndicates if the control uses the background color from its Parent control.
ParentColorprotectedUse the Color from the Parent control, when enabled.
ParentFontprotectedIndicates if the Font from the Parent control is used in the control.
ParentShowHintprotectedIf True, the value of ShowHint for the control will be the same as the one from the Parent. Default is True.
SessionPropertiesprotectedDelimited list of property or sub-component property names saved to and restored from an external storage mechanism.
TextprotectedString with the text or caption for the control.
AnchoredControlspublicProvides indexed access to controls which are anchored to the current control by their ordinal position.
BaseBoundspublicThe rectangle with the designed bounds for the control.
ReadBoundspublicReflects the Bounds for the Control read during LCL component streaming.
BaseParentClientSizepublicThe client size for the Parent, for which the BaseBounds are valid.
AccessibleNamepublicContains the accessible name for the control, like the value for its Caption or Name property.
AccessibleDescriptionpublicProvides the accessibility description for the control, like "a text caption", etc.
AccessibleValuepublicThe accessibility value for the control.
AccessibleRolepublicThe accessibility role for the control which classifies what kind of object in the class instance.
ActionpublicThe Action associated with the control.
AlignpublicSpecifies the placement of the control on its Parent control.
AnchorspublicThe set of anchor definitions for this control.
AnchorSidepublicArray of anchor definitions, indexed by the control sides.
AutoSizepublicAllows automatic adjustment of the size for the control, according to its content.
BorderSpacingpublicDetermines the inner and outer border spacing for this control.
BoundsRectpublicThe Top, Left and Bottom, Right for the control, in client coordinates.
BoundsRectForNewParentpublicTemporary BoundsRect, used when the control e.g. is docked into a different Parent.
CaptionpublicThe text displayed for the control.
CaptureMouseButtonspublicIndicates the mouse button(s) which are captured for the control.
ClientHeightpublicThe height for the client area on the control.
ClientOriginpublicScreen coordinates of the Top, Left pixel (in the client area) of the control.
ClientRectpublicSize of the client area for the control.
ClientWidthpublicThe width of the client area for the control.
ColorpublicThe background color for the control.
ConstraintspublicContains the minimum and maximum Width and Height for the control.
ControlOriginpublicThe top, left pixel for the control in screen coordinates.
ControlStatepublicContains state flags which indicate whether the control has been clicked, data is being read, or the control is being re-drawn, etc.
ControlStylepublicContains style flags which control the features or behaviors enabled for the control.
EnabledpublicDetermines whether the control responds to mouse or keyboard input.
FontpublicThe font to be used for text display in this control.
IsControlpublicNot used in the current LCL implementation.
MouseInClientpublicTrue when the mouse is in the client area for the control.
ParentpublicThe control within which the control is shown.
PopupMenupublicA context-sensitive menu that pops up when the right mouse button is clicked over this control.
ShowHintpublicEnables Hint display for the control.
VisiblepublicAllows the control, and all of its children, to be displayed or hidden.
WindowProcpublicThe handler for all messages.
DockOrientationpublicHow the control is currently docked. (horizontally, vertically, in a notebook, or not at all).
FloatingpublicDetermines whether the control is floating (not part of a form).
FloatingDockSiteClasspublicThe class for a floating host dock site for this control.
HostDockSitepublicThe host site (TWinControl) into which this control is docked. Nil if not docked.
LRDockWidthpublicThe Width when last docked with siblings to the left or right.
TBDockHeightpublicThe Height when last docked with siblings above or below.
UndockHeightpublicHeight for the control when undocked.
UndockWidthpublicWidth for the control when undocked.
BiDiModepublicIndicates whether text controls use in bi-directional reading.
ParentBiDiModepublicIndicates whether the BiDiMode settings in the Parent control are used.
AnchorSideLeftpublishedContains anchor alignment information used to position the control with its left edge anchored to another control.
AnchorSideToppublishedContains anchor alignment information used to position the control with its top edge anchored to another control.
AnchorSideRightpublishedContains anchor alignment information used to position the control with its right edge anchored to another control.
AnchorSideBottompublishedContains anchor alignment information used to position the control with its bottom edge anchored to another control.
CursorpublishedContains the shape for the mouse pointer when the mouse is over the control.
LeftpublishedThe client coordinate with the left edge for the control.
HeightpublishedThe vertical size for the control.
HintpublishedThe text to show in the Hint window for the control.
ToppublishedThe client coordinate for the top edge of the control.
WidthpublishedThe horizontal size for the control.
HelpTypepublishedIndicates whether context-sensitive Help is selected by numeric ID or keyword.
HelpKeywordpublishedThe context-sensitive Help keyword for the control.
HelpContextpublishedThe numeric context-sensitive Help identifier for the control.

Methods

WSRegisterClassprotectedRegisters this component class with the current WidgetSet.
GetCursorprotectedGets the value for the Cursor property.
SetCursorprotectedSets the value for the Cursor property.
SetVisibleprotectedSets the value for the Visible property.
DoOnParentHandleDestructionprotectedPerforms actions needed when the handle for the parent control is freed.
DoAutoSizeprotectedFor internal use only; call AdjustSize instead.
DoAllAutoSizeprotectedResizes and aligns the control and all of it children.
BeginAutoSizingprotectedSets AutoSizing to True; used to prevent loops.
EndAutoSizingprotectedEnd of the auto-sizing process, resets AutoSizing to False.
AnchorSideChangedprotectedRequest further processing after an anchor side was changed.
ForeignAnchorSideChangedprotectedRequests further processing after an anchor side has changed, that anchors another control to this one.
SetAlignprotectedSets the value for the Align property.
SetAnchorsprotectedSets the value for the Anchors property.
SetAutoSizeprotectedSets the value for the AutoSize property.
BoundsChangedprotectedCalled when the Bounds of the control have been changed; override as required.
CreateControlBorderSpacingprotectedCreates the default BorderSpacing object instance for the class.
DoConstraintsChangeprotectedPerforms actions needed when value(s) in Constraints have been changed.
DoBorderSpacingChangeprotectedPerforms actions needed when border spacing for the control is changed.
IsBorderSpacingInnerBorderStoredprotectedChecks for an assigned value in BorderSpacing.InnerBorder.
IsCaptionStoredprotectedImplements the storage specifier for the Caption property.
SendMoveSizeMessagesprotectedSends Move and Size messages through the LCL message paths.
ConstrainedResizeprotectedSignals the OnConstrainedResize handler.
CalculatePreferredSizeprotectedOverride this method to return the preferred height and width for the control.
DoOnResizeprotectedSignals OnResize event handlers for the control.
DoOnChangeBoundsprotectedSignals OnChangeBounds event handlers for the control.
CheckOnChangeBoundsprotectedChecks for changes and calls DoOnChangeBounds if needed.
ResizeprotectedChecks for changes and calls DoOnResize if needed.
RequestAlignprotectedAsks the parent control to realign all controls that are siblings.
UpdateAnchorRulesprotectedUpdate the rules for anchoring the control.
ChangeBoundsprotectedSets the bounds (left, top, height, width) and optionally the BaseBounds of the control.
DoSetBoundsprotectedInternal function used to set the bounds for the control (Left, Top, Height, Width).
ScaleConstraintsprotectedScales the minimum and maximum Width and Height.
ChangeScaleprotectedApplies scaling (multiplier and divider) to the bounds coordinates, constraints, and Font in a control.
CanAutoSizeprotectedDetermines if auto-sizing is possible, and if so, gets the new width and height when enabled.
SetBiDiModeprotectedSets the value for the BiDiMode property.
SetParentBiDiModeprotectedSets the value for the ParentBiDiMode property.
IsAParentAligningprotectedDetermines if a parent control is involved in the alignment process for the control.
GetClientOriginprotectedGets the value for the ClientOrigin property.
GetClientRectprotectedGets the value for the ClientRect property.
GetLogicalClientRectprotectedLogical client area, can be bigger than the visible client area.
GetScrolledClientRectprotectedGet the visible part of the logical client area.
GetClientScrollOffsetprotectedReturns the offset of the scrolled client area (in a scrolling TWinControl).
GetControlOriginprotectedGets the value for the ControlOrigin property.
IsClientHeightStoredprotectedImplements the storage specifier for the ClientHeight property.
IsClientWidthStoredprotectedImplements the storage specifier for the ClientWidth property.
WidthIsAnchoredprotectedTrue when both the control's left and right side are anchored.
HeightIsAnchoredprotectedTrue when both the control's top and bottom side are anchored.
WMCancelModeprotectedHandles a LM_CANCELMODE message for the control.
WMContextMenuprotectedHandles a LM_CONTEXTMENU message for the control.
WMLButtonDownprotectedHandles a LM_LBUTTONDOWN (left mouse button down) message for the control.
WMRButtonDownprotectedHandles a LM_RBUTTONDOWN (right mouse button down) message for the control.
WMMButtonDownprotectedHandles a LM_MBUTTONDOWN (middle mouse button down) message for the control.
WMXButtonDownprotectedHandles a LM_XBUTTONDOWN (extra mouse button down) message for the control.
WMLButtonDBLCLKprotectedHandles a left mouse button double click message for the control.
WMRButtonDBLCLKprotectedMessage handler for right mouse button double click events.
WMMButtonDBLCLKprotectedMessage handler for middle mouse button double click events.
WMXButtonDBLCLKprotectedMessage handler for extra mouse button double click events.
WMLButtonTripleCLKprotectedMessage handler for left mouse button triple click events.
WMRButtonTripleCLKprotectedMessage handler for right mouse button triple click events.
WMMButtonTripleCLKprotectedMessage handler for middle mouse button triple click events.
WMXButtonTripleCLKprotectedMessage handler for extra mouse button triple click events.
WMLButtonQuadCLKprotectedMessage handler for left mouse button quadruple click events.
WMRButtonQuadCLKprotectedMessage handler for right mouse button quadruple click events.
WMMButtonQuadCLKprotectedMessage handler for middle mouse button quadruple click events.
WMXButtonQuadCLKprotectedMessage handler for extra mouse button quadruple click events.
WMMouseMoveprotectedMessage handler for mouse move events.
WMLButtonUpprotectedMessage handler for left mouse button up events.
WMRButtonUpprotectedMessage handler for right mouse button up events.
WMMButtonUpprotectedMessage handler for middle mouse button up events.
WMXButtonUpprotectedMessage handler for extra mouse button up events.
WMMouseWheelprotectedHandles mouse wheel messages for the control.
WMMouseHWheelprotectedHandles horizontal mouse wheel messages for the control.
WMMoveprotectedMessage handler for control move events.
WMSizeprotectedMessage handler for changed control size.
WMWindowPosChangedprotectedMessage handler for changed control position events.
CMChangedprotectedHandles CM_CHANGED control messages for the control.
LMCaptureChangedprotectedHandles a LM_CaptureChanged message for the control.
CMBiDiModeChangedprotectedHandles CM_BIDIMODECHANGED messages for the control.
CMSysFontChangedprotectedHandles the CM_SYSFONTCHANGED message for the control.
CMEnabledChangedprotectedHandles a CM_ENABLEDCHANGED message for the control.
CMHitTestprotectedHandles the CM_HITTEST message for the control.
CMMouseEnterprotectedHandles a CM_MOUSEENTER message for the control.
CMMouseLeaveprotectedHandles a CM_MOUSELEAVE message for the control.
CMHintShowprotectedHandles the CM_HINTSHOW message for the control.
CMParentBiDiModeChangedprotectedHandles a CM_PARENTBIDIMODECHANGED message for the control.
CMParentColorChangedprotectedHandles a CM_PARENTCOLORCHANGED message for the control.
CMParentFontChangedprotectedHandles a CM_PARENTFONTCHANGED message for the control.
CMParentShowHintChangedprotectedHandles a CM_PARENTSHOWHINTCHANGED message for the control.
CMVisibleChangedprotectedHandles a CM_VISIBLECHANGED message for the control.
CMTextChangedprotectedHandles a CM_TEXTCHANGED message for the control.
CMCursorChangedprotectedHandles the CM_CURSORCHANGED message for the control.
CalculateDockSizesprotectedSaves the docked and undocked extent of the control.
CreateFloatingDockSiteprotectedCreate a floating dock site with a client area equal to the given screen coordinates.
GetDockEdgeprotectedDetermines the side to which the dragged control shall be docked.
GetDragImagesprotectedGet the list of images used when a drag operation is active.
GetFloatingprotectedDetermines whether the control is floating.
GetFloatingDockSiteClassprotectedReturns the class for a floating host dock site.
BeforeDragStartprotectedPerforms actions needed before a drag operation is started for the control.
BeginAutoDragprotectedFor internal use: user has started dragging the control.
DoFloatMsgprotectedHandler called when the control starts floating.
DockTrackNoTargetprotectedAdjust the DockRect for floating state (no drop target under the mouse).
DoDockprotectedAdjusts the control position and extent for the new docksite.
DoDragMsgprotectedHandler for a drag message, sent by the DragManager to the current target control.
DoEndDockprotectedSignals the OnEndDock event handler when the control has been undocked.
DoEndDragprotectedSignals the OnEndDrag event handler.
DoStartDockprotectedSignals the OnStartDock event handler.
DoStartDragprotectedSignals the OnStartDrag event handler.
DragCanceledprotectedNotifies the control of a cancelled drag operation.
DragOverprotectedCalled when an object is dragged over this control; Determines whether a drop is acceptable, using the OnDragOver handler.
PositionDockRectprotectedGet the DockRect for an possible drop.
SetDragModeprotectedSets the value for the DragMode property.
GetDefaultDockCaptionprotectedReturns the string for the dock caption, by default the control's Name.
ClickprotectedSignals OnClick and/or executes the ActionLink when the control has been clicked.
DblClickprotectedSignals the OnDblClick event handler (when assigned).
TripleClickprotectedSignals the OnTripleClick event handler (when assigned).
QuadClickprotectedSignals the OnQuadClick event handler (when assigned).
GetMousePosFromMessageprotectedConverts the coordinates in the mouse message from SmallInt to LongInt values.
DoMouseDownprotectedPerforms actions needed to handle a mouse down event for the control.
DoMouseUpprotectedPerforms actions needed to handle a mouse up event for the control.
MouseDownprotectedHandles a mouse down event for the control.
MouseMoveprotectedHandler for MouseMove events.
MouseUpprotectedSignals the OnMouseUp handler.
MouseEnterprotectedSignals the OnMouseEnter event handler (when assigned).
MouseLeaveprotectedSignals the OnMouseLeave event handler (when assigned).
DialogCharprotectedPerforms actions needed to handle an accelerator key for the control.
UpdateMouseCursorprotectedChanges the cursor shape to the value in the Cursor property.
ChangedprotectedPerforms actions needed when the value for the control has been changed.
GetPaletteprotectedOverride GetPalette to return the handle of a color palette.
GetParentBackgroundprotectedGets the value for the ParentBackground property.
ChildClassAllowedprotectedReturns True if the specified class is allowed for children of this control.
ReadStateprotectedUpdates control flags and reads the data for the component.
LoadedprotectedPerforms actions needed when LCL component streaming has been completed.
LoadedAllprotectedCalled when the control and its child controls have been loaded, and their control state is changed.
DefinePropertiesprotectedDefines which non-published properties should be streamed (none here).
AssignToprotectedImplements assignment of the control to an Action object, or calls the inherited method.
FormEndUpdatedprotectedCalled for each control on a form where the update count has reached 0 (zero).
InvalidateControlprotectedRequests a repaint of the control.
FontChangedprotectedHandles changes to the Font property.
ControlFontClassprotected
ParentFontChangedprotected[Delphi compatible] Does nothing here, all work is done in CMParentFontChanged.
GetActionprotectedGets the value for the Action property.
RealGetTextprotectedReturns the Caption property.
RealSetTextprotectedSets the value for the Caption property.
TextChangedprotectedPerforms actions needed when the value for the Text property has been changed.
GetCachedTextprotectedReturns the cached Text property (FCaption).
SetActionprotectedSets the value for the Action property.
SetColorprotectedSets the value for the Color property.
SetEnabledprotectedSets the value for the Enabled property.
SetHintprotectedSets the value for the Hint property.
SetNameprotectedSets the value for the Name property.
SetParentprotectedSets the value for the Parent property.
SetParentBackgroundprotectedSets the value for the ParentBackground property.
SetParentComponentprotectedSets the value in the Parent property when the new parent component is a TWinControl instance.
WndProcprotectedThe general message handler for this control.
ParentFormHandleInitializedprotectedInternal handler for activities after a form widget has been created.
GetMouseCaptureprotectedGets the value for the MouseCapture property.
CaptureChangedprotectedHandler for mouse capture moved to a different control.
NotificationprotectedNotification handler for insertion or deletion of components.
CanTabprotectedDetermines whether the Tab key can be used for navigation in the control.
GetDeviceContextprotectedReturns a device context handle for the control, from Parent.
GetEnabledprotectedGets the value for the Enabled property.
GetPopupMenuprotectedGets the value for the PopupMenu property.
DoOnShowHintprotectedSignals the OnShowHint event handler.
DoMouseWheelprotectedSignals the OnMouseWheel handlers, when the mouse wheel has been turned.
DoMouseWheelDownprotectedSignals the OnMouseWheelDown handler.
DoMouseWheelUpprotectedSignals the OnMouseWheelUp handler.
DoMouseWheelHorzprotectedPerforms actions needed to handle horizontal mouse wheel events.
DoMouseWheelLeftprotectedSignals the OnMouseWheelLeft event handler (when assigned).
DoMouseWheelRightprotectedSignals the OnMouseWheelRight event handler.
VisibleChangingprotectedNotifies all chtOnVisibleChanging handlers for the control.
VisibleChangedprotectedNotifies all chtOnVisibleChanged handlers for the control.
EnabledChangingprotectedNotifies all chtOnEnabledChanging handlers for the control.
EnabledChangedprotectedNotifies all chtOnEnabledChanged handlers for the control.
AddHandlerprotectedAdds a notification handler for the specified control handler type.
RemoveHandlerprotectedRemoves a notification handler from the list for the specified handler type.
DoCallNotifyHandlerprotectedSignals handler routines for the specified control handler type.
DoCallKeyEventHandlerprotectedPasses key events for the specified type to the handlers added to the control.
DoCallMouseWheelEventHandlerprotectedExecutes assigned mouse wheel events until a handler is found for the event notifications.
DoContextPopupprotectedSignals the OnContextPopup handler.
SetZOrderprotectedMoves the control in front of or behind all sibling controls.
GetControlClassDefaultSizeprotectedReturns the default dimensions for new instances of the class.
ColorIsStoredprotectedImplements the storage specifier for the Color property.
DoAutoAdjustLayoutprotectedApplies layout changes using the specified policy and scaling proportions to the control.
DoFixDesignFontPPIprotectedApplies the design-time PPI and resizes the specified control font.
DoScaleFontPPIprotectedImplements the ScaleFontsPPI method for the control.
GetActionLinkClassprotectedThe default ActionLink class (TControlActionLink).
ActionChangeprotectedHandler for a changed Action.
DragDroppublicSignals the OnDragDrop handler when a dragged object is dropped onto this control.
DockpublicMoves the control into a new docksite.
ManualDockpublicDocks a control programmatically.
ManualFloatpublicUndocks the control into a floating dock site.
ReplaceDockedControlpublicReplaces a previously docked control.
DockedpublicIndicates if the control has a host dock site.
DraggingpublicReturns True if the control is being dragged.
GetAccessibleObjectpublicReturns True if the control is being dragged.
CreateAccessibleObjectpublicCreates a TLazAccessibleObject instance for this control.
GetSelectedChildAccessibleObjectpublicReturns the currently selected child accessibility object.
GetChildAccessibleObjectAtPospublicReturns the child accessibility object at the given position for the control.
ScaleDesignToFormpublicScales a size value from the design-time PPI to the run-time PPI for the parent form.
ScaleFormToDesignpublicScales a size value from the run-time PPI for the parent form to the design-time PPI.
Scale96ToFormpublicScales a size value from 96 PPI to the run-time PPI for the Screen.
ScaleFormTo96publicScales a size value from the PPI for the Parent form (or designer control) to 96 PPI.
Scale96ToFontpublicScales a size value from 96 PPI to the PPI setting for the Font in the control.
ScaleFontTo96publicScales a size value from the PPI setting in the Font for the control to 96 PPI.
ScaleScreenToFontpublicScales a size value from the PPI setting for the Screen to the PPI setting for the Font in the control.
ScaleFontToScreenpublicScales a size value from the PPI setting for the Font to the PPI setting for the Screen.
Scale96ToScreenpublicScales a size value from 96 PPI to the PPI setting for the Screen.
ScaleScreenTo96publicScales a size value from the PPI setting for the Screen to 96 PPI.
AdjustSizepublicSmart way to DoAutoSize.
AutoSizePhasespublicAuto-sizing phases enabled for the control.
AutoSizeDelayedpublicReturns True if auto-sizing has been delayed until some other process is complete.
AutoSizeDelayedReportpublicReturns a string with a debugging message for delayed auto-size requests.
AutoSizeDelayedHandlepublicReturns True if AutoSize should be skipped or delayed because of its handle.
AnchorToNeighbourpublicAnchor to Sibling at Side.
AnchorParallelpublicAnchor parallel to Sibling, at Side.
AnchorHorizontalCenterTopublicAnchors the horizontal center of the control to the center of the specified sibling.
AnchorVerticalCenterTopublicAnchors the vertical center of the control to the center of the specified Sibling.
AnchorToCompanionpublicAnchor to Sibling at Side, with the same extent.
AnchorSamepublicCopy Sibling's anchoring for Side.
AnchorAsAlignpublicAnchor to the Parent using the Align value for the control.
AnchorClientpublicAnchor to Parent's full client area.
AnchoredControlCountpublicThe number of controls anchored to the current control.
SetBoundspublicSets the bounds (Left, Top, Width, Height) of the control.
SetInitialBoundspublicSets the bounds of the control initially, when it is created.
SetBoundsKeepBasepublicSet the bounds, keeping the base values.
GetPreferredSizepublicReturns default/preferred height and width, for use in auto-sizing.
GetCanvasScaleFactorpublicGets the scaling factor for the canvas used to render the control.
GetDefaultWidthpublicThe default width for the control independent of any calculated values like Width and GetPreferredSize.
GetDefaultHeightpublicThe default height for the control independent of any calculated values like Height and GetPreferredSize.
GetDefaultColorpublicGets the default color for the control.
GetColorResolvingParentpublicReturns the color of the control while resolving clDefault and ParentColor.
GetRGBColorResolvingParentpublicReturns a RGB value for the color used on the control.
GetSidePositionpublicGets the client coordinate for the specified side.
CNPreferredSizeChangedpublicMessage handler for preferred size changed.
InvalidatePreferredSizepublicMarks the preferred size as invalid for this control and all parents (implies that we will look for another).
GetAnchorsDependingOnParentpublicReturns the sides which are anchored to the Parent.
DisableAutoSizingpublicDisables automatic sizing; implies that the default size is accepted, or sizing is done manually.
EnableAutoSizingpublicEnables automatic sizing for the control.
UpdateBaseBoundspublicUpdates the base bounds for the control; essential if there has been a lot of resizing.
WriteLayoutDebugReportpublicUsed for debugging.
AutoAdjustLayoutpublicApplies an automatic adjustment layout policy to the control.
ShouldAutoAdjustpublicIndicates whether the height and/or width for a control can be automatically adjusted.
FixDesignFontsPPIpublicCorrects the font size for High-DPI-aware applications.
ScaleFontsPPIpublicResizes a font to the specified Pixels per Inch setting.
CreatepublicConstructor for the class instance.
DestroypublicRemoves the control from its Parent.
BeforeDestructionpublicPerforms notifications before the control is destroyed.
EditingDonepublicSignals the OnEditingDone event handler.
ExecuteDefaultActionpublicCalled when the Return key is pressed, signifying the default action.
ExecuteCancelActionpublicCalled when the Escape key is pressed or the Cancel button is clicked.
BeginDragpublicStarts a drag operation for the control (programmatically).
EndDragpublicEnds a drag operation by notifying the drag manager.
BringToFrontpublicBrings the control in front of other sibling controls.
HasParentpublicReturns True if there is a Parent component responsible for streaming.
GetParentComponentpublicReturns the value in the Parent property.
IsParentOfpublicDetermines whether this control is a parent of AControl.
GetTopParentpublicFinds the control that is the top-most Parent in the control hierarchy.
FindSubComponentpublicFinds the sub-component with the specified name in the Components property.
IsVisiblepublicGets the effective visibility for the control and all of its Parent controls.
IsControlVisiblepublicTrue if the control is Visible, or is in design mode.
IsEnabledpublicReturns True if both the control and all of its Parent controls are Enabled.
IsParentColorpublicProvides access to the value in the protected ParentColor property.
IsParentFontpublicProvides access to the value in the protected ParentFont property.
FormIsUpdatingpublicTrue if the form is being updated.
IsProcessingPaintMsgpublicTrue while painting the control.
HidepublicHides the control by setting the Visible property to False.
RefreshpublicCauses the control to be redrawn.
RepaintpublicImmediately redraws the control when visible, bypassing the message queue.
InvalidatepublicCauses a delayed Repaint of the control by marking its visible area of the control as invalid.
CheckChildClassAllowedpublicReturns True if the class is allowed for child controls.
CheckNewParentpublicChecks if this control can become a child of AParent.
SendToBackpublicMoves all sibling controls in front of this control.
SetTempCursorpublicChanges the cursor shape temporarily, preserving the original
UpdateRolesForFormpublicInternal method called by a Form when its DefaultControl or CancelControl has changed.
ActiveDefaultControlChangedpublicNotification of a changed active DefaultControl of a form.
GetTextBufpublicCopy the Text property into Buffer.
GetTextLenpublicThe length of the Text for the control.
SetTextBufpublicUpdates the Text property from a PChar buffer.
PerformpublicCalls a message handler directly, bypassing the message queue.
ScreenToClientpublicConverts absolute screen coordinates into client-relative coordinates.
ClientToScreenpublicConverts client-relative coordinates to absolute screen coordinates.
ScreenToControlpublicConverts absolute screen coordinates to control-relative coordinates.
ControlToScreenpublicConverts control-relative coordinates to absolute screen coordinates.
ClientToParentpublicConverts the specified client coordinates to the screen coordinates for the specified parent control.
ParentToClientpublicConverts the specified client coordinates on a parent control to the client coordinates for the control instance.
GetChildrenRectpublicGet the visible part of a possibly scrolled client area.
ShowpublicMakes the control visible by setting Visible to True.
UpdatepublicRedraws invalidated parts of the control immediately.
HandleObjectShouldBeVisiblepublicTrue if the control should be visible, unless it's being destroyed.
ParentDestroyingHandlepublicReturns True if any parent control is destroying its Handle (or handles for its children).
ParentHandlesAllocatedpublicReturns True if all Parents have allocated handles, and are not being destroyed.
InitiateActionpublicUpdates the action associated with the control using its action link.
ShowHelppublicDisplays the help associated with the control.
HasHelppublicIndicates whether a HelpKeyword or HelpContext identifier is assigned for the control.
RemoveAllHandlersOfObjectpublicRemoves all control handler types for the specified object.
AddHandlerOnResizepublicAdds or inserts the specified OnResize event handler.
RemoveHandlerOnResizepublicRemoves the specified OnResize event handler.
AddHandlerOnChangeBoundspublicAdds or inserts the specified OnChangeBounds event handler.
RemoveHandlerOnChangeBoundspublicRemoves the specified OnChangeBounds event handler.
AddHandlerOnVisibleChangingpublicAdds or inserts the specified OnVisibleChanging event handler.
RemoveHandlerOnVisibleChangingpublicRemoves the specified OnVisibleChanging event handler.
AddHandlerOnVisibleChangedpublicAdds or inserts the specified OnVisibleChanged event handler.
RemoveHandlerOnVisibleChangedpublicRemoves the specified OnVisibleChanged event handler.
AddHandlerOnEnabledChangingpublicAdds the specified OnEnabledChanging handler.
RemoveHandlerOnEnabledChangingpublicRemoves the specified OnEnabledChanging event handler.
AddHandlerOnEnabledChangedpublicAdds an OnEnabledChanged handler.
RemoveHandlerOnEnabledChangedpublicRemoves the specified OnEnabledChanged event handler.
AddHandlerOnKeyDownpublicAdds the specified OnKeyDown event handler.
RemoveHandlerOnKeyDownpublicRemoves the specified OnKeyDown event handler.
AddHandlerOnBeforeDestructionpublicAdds or inserts the specified OnBeforeDestruction event handler.
RemoveHandlerOnBeforeDestructionpublicRemoves the specified OnBeforeDestruction event handler.
AddHandlerOnMouseWheelpublicAdds or inserts the specified OnMouseWheel event handler.
RemoveHandlerOnMouseWheelpublicRemoves the specified OnMouseWheel event handler.
UseRightToLeftAlignmentpublicTrue when BiDiMode is bdRightToLeft.
UseRightToLeftReadingpublicTrue when BiDiMode is not bdLeftToRight.
UseRightToLeftScrollBarpublicTrue when BiDiMode indicates right-to-left reading is in use.
IsRightToLeftpublicTrue when BiDiMode is not bdLeftToRight.

Events

OnConstrainedResizeprotectedThis handler can supply specific Constraints (size limits), when the control is resized.
OnContextPopupprotectedInvoked when a context-sensitive pop-up menu is requested.
OnDblClickprotectedEvent handler signalled when a mouse double click occurs in the control.
OnTripleClickprotectedEvent handler signalled when a mouse triple click occurs in the control.
OnQuadClickprotectedEvent handler signalled when a mouse quadruple mouse occurs in the control.
OnDragDropprotectedEvent handler signalled when an object is dropped onto the control.
OnDragOverprotectedEvent handler signalled when a control is dragged over the control instance.
OnEndDockprotectedEvent handler signalled for the end of a drag-dock operation.
OnEndDragprotectedEvent handler signalled for the end of a drag-drop operation.
OnMouseDownprotectedEvent handler signalled when a mouse down event is handled for the control.
OnMouseMoveprotectedEvent handler signalled when the mouse pointer is moved in the control.
OnMouseUpprotectedEvent handler signalled when a mouse up event is handled for the control.
OnMouseEnterprotectedEvent handler signalled when the mouse pointer has entered the control.
OnMouseLeaveprotectedEvent handler signalled when the mouse pointer has left the control.
OnMouseWheelprotectedEvent handler for mouse wheel turned.
OnMouseWheelDownprotectedEvent handler signalled for a downward movement of the mouse wheel.
OnMouseWheelUpprotectedEvent handler signalled for an upward movement of the mouse wheel.
OnMouseWheelHorzprotectedEvent handler signalled for a horizontal movement of the mouse wheel.
OnMouseWheelLeftprotectedEvent handler signalled for a leftward movement of the mouse wheel.
OnMouseWheelRightprotectedEvent handler signalled for a rightward movement of the mouse wheel.
OnStartDockprotectedEvent handler for the start of a docking operation.
OnStartDragprotectedEvent handler signalled for the start of a dragging operation.
OnEditingDoneprotectedEvent handler signalled when editing is completed for the control.
OnChangeBoundspublicEvent handler signalled when the Bounds for the control have been changed.
OnClickpublicNotification handler for mouse clicks.
OnResizepublicNotification handler for a resize of the control.
OnShowHintpublicEvent handler signalled when a hint window is displayed for the control.

Fields

FAccessibleObjectprotectedMember with the accessibility object for the control.
FControlStateprotectedMember with the value for the ControlState property.
FCursorprotectedMember with the value for the Cursor property.
FCompStylepublicEnables use of the 'IN' operator for component styles.

Inherited

From TLCLComponent (6)

DecLCLRefCount GetWSComponentClass IncLCLRefCount LCLRefCount NewInstance WidgetSetClass

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.