Control#

Qualified name: delphivcl.Control

class Control#

Bases: Component

TControl is the base class for all components that are visible at run time. Controls are visual components, meaning the user can see them and possibly interact with them at run time. All controls have properties, methods, and events that describe aspects of their appearance, such as the position of the control, the cursor or hint associated with the control, methods to paint or move the control, and events that respond to user actions. TControl has many protected properties and methods that are used or published by its descendants.

Methods

BeginDrag

Starts the dragging of a control.

BringToFront

Puts the control in front of all other controls in its parent control.

CheckNonMainThreadUsage

Embarcadero Technologies does not currently have any additional information.

ClientToParent

Translates client coordinates to parent coordinates.

ClientToScreen

Translates a given point from client area coordinates to global screen coordinates.

Create

Creates an instance of TControl.

DefaultHandler

Provides message handling for all messages that do not have specific handlers.

Destroy

Destroys an instance of TControl.

Dock

Used internally to dock the control.

DragDrop

Is an OnDragDrop event dispatcher.

Dragging

Indicates whether a control is being dragged.

DrawTextBiDiModeFlags

Returns the text flags that reflect the current setting of the BiDiMode property.

DrawTextBiDiModeFlagsReadingOnly

Returns the text flag to add that indicates whether the control's text should read from right to left.

EndDrag

Stops a control from being dragged any further.

GetControlsAlignment

Indicates how text is aligned within the control.

GetParentComponent

Returns the parent of the control.

GetStyleName

Embarcadero Technologies does not currently have any additional information.

GetSystemMetrics

Embarcadero Technologies does not currently have any additional information.

GetTextBuf

Retrieves the control's text, copies it into a buffer, and returns the number of characters copied.

GetTextLen

Returns the length of the control's text.

HasParent

Indicates whether the control has a parent.

Hide

Makes the control invisible.

InitiateAction

Calls the action link's Update method if the control is associated with an action link.

Invalidate

Completely repaints the control.

IsCustomStyleActive

Embarcadero Technologies does not currently have any additional information.

IsLightStyleColor

Embarcadero Technologies does not currently have any additional information.

IsRightToLeft

Indicates whether the control should be reversed right to left.

ManualDock

Docks the control.

ManualFloat

Undocks the control.

MouseWheelHandler

Dispatches messages received from a mouse wheel.

ParentToClient

Translate parent coordinates to client coordinates.

Perform

Responds as if the control received a specified Windows message.

Refresh

Repaints the control on the screen.

Repaint

Forces the control to repaint its image on the screen.

ReplaceDockedControl

Docks the control in the place where another control is already docked.

ScaleForPPI

Embarcadero Technologies does not currently have any additional information.

ScaleRectSize

Embarcadero Technologies does not currently have any additional information.

ScaleValue

The overloaded ScaleValue methods return a measure passed as parameter scaled by the current scale factor for the control (the value of the ScaleFactor read-only property).

ScreenToClient

Converts the screen coordinates of a specified point on the screen to client coordinates.

SendToBack

Puts a windowed control behind all other windowed controls, or puts a non-windowed control behind all other non-windowed controls.

SetBounds

Sets the Left, Top, Width, and Height properties all at once.

SetDesignVisible

Makes a control visible at design time.

SetParentComponent

Sets the parent for the control.

SetTextBuf

Sets the text of the control.

Show

Makes a control visible.

Update

Processes any pending paint messages immediately.

UseRightToLeftAlignment

Specifies whether the control's alignment should be reversed right-to-left.

UseRightToLeftReading

Specifies whether the control is using a right-to-left reading order.

UseRightToLeftScrollBar

Specifies whether the vertical scroll bar appears on the left side of the control.

Attributes

Action

Specifies the action associated with the control.

Align

Determines how the control aligns within its container (parent control).

AlignWithMargins

Specifies whether a control should be constrained by margins.

Anchors

Specifies how the control is anchored to its parent.

BiDiMode

Specifies the bidirectional mode for the control.

BoundsRect

Specifies the bounding rectangle of the control, expressed in the coordinate system of the parent control.

ClassName

Returns the TObject.ClassName

ClientHeight

Specifies the height of the control's client area in pixels.

ClientOrigin

Specifies the screen coordinates (in pixels) of the upper-left corner of a control's client area.

ClientRect

Specifies the size of a control's client area in pixels.

ClientWidth

Specifies the horizontal size of the control's client area in pixels.

ComObject

Specifies the interface reference implemented by the component.

ComponentCount

Indicates the number of components owned by the component.

ComponentIndex

Indicates the position of the component in its owner's Components property array.

ComponentState

Describes the current state of the component, indicating when a component needs to avoid certain actions.

ComponentStyle

Governs the behavior of the component.

Components

<Delphi indexed property Components of type TComponent at 21141642500>

Constraints

Specifies the size constraints for the control.

ControlState

Specifies the current state of a control at run time.

ControlStyle

Determines style characteristics of the control.

CurrentPPI

Embarcadero Technologies does not currently have any additional information.

Cursor

Specifies the image used to represent the mouse pointer when it passes into the region covered by the control.

CustomHint

CustomHint is a custom hint for the control.

DesignInfo

Contains information used by the Form designer.

DockOrientation

DockOrientation specifies how the control is docked relative to other controls docked in the same parent.

Enabled

Controls whether the control responds to mouse, keyboard, and timer events.

ExplicitHeight

Specifies the explicit vertical size of the control in pixels.

ExplicitLeft

Specifies the explicit horizontal pixel coordinate of the left edge of a component relative to its parent.

ExplicitTop

Specifies the explicit vertical pixel coordinate of the top edge of a component relative to its parent.

ExplicitWidth

Specifies the explicit horizontal size of the control in pixels.

Floating

Specifies whether the control is floating.

FloatingDockSiteClass

Specifies the class of the temporary control that hosts the control when it is floating.

Height

Specifies the vertical size of the control in pixels.

HelpContext

The HelpContext property contains the numeric context ID that identifies the Help topic for the control.

HelpKeyword

The HelpKeyword property contains the keyword string that identifies the Help topic for the control.

HelpType

Specifies whether the control's context-sensitive Help topic is identified by a context ID or by keyword.

Hint

Hint contains the text string that appears when the user moves the mouse over the control.

HostDockSite

Specifies the control in which the control is docked.

LRDockWidth

Specifies the width of the control when it is docked horizontally.

Left

Specifies the horizontal coordinate of the left edge of a component relative to its parent.

Margins

Specifies the margins of the control.

Name

Specifies the name of the component as referenced in code.

Observers

Indicates the TObservers object added to the TComponent.

OnGesture

<Delphi property OnGesture of type TControl at 211418EC500>

Owner

Indicates the component that is responsible for streaming and freeing this component.

Parent

Specifies the parent of the control.

ParentCustomHint

Specifies where a control looks for its custom hint.

ScaleFactor

Embarcadero Technologies does not currently have any additional information.

ShowHint

ShowHint specifies whether to show the Help Hint when the mouse pointer moves over the control.

StyleElements

Specifies the style elements that are used by the control.

StyleName

Embarcadero Technologies does not currently have any additional information.

TBDockHeight

Specifies the height of the control when it is docked vertically.

Tag

Stores a NativeInt integral value as a part of a component.

Top

Specifies the Y coordinate of the upper-left corner of a control, relative to its parent or containing control in pixels.

Touch

Specifies the touch manager component associated with the control.

UndockHeight

Specifies the height of the control when it is floating.

UndockWidth

Specifies the width of the control when it is floating.

VCLComObject

Represents information used internally by components that support COM.

Visible

Specifies whether the component appears onscreen.

Width

Specifies the horizontal size of the control or form in pixels.

WindowProc

<Delphi property WindowProc of type TControl at 211418EC1C0>

Action#

Specifies the action associated with the control. Action is the action object that is associated with the control. Actions allow an application to centralize the response to user commands. When a control is associated with an action, the action determines the appropriate properties and events of the control (such as whether the control is enabled or how it responds to an OnClick event). To create actions at design time, place an action list component on a form or data module. Double-click the action list to bring up the action list editor. Add actions in the editor using its context menu. Once the actions have been added using the Action List editor, they appear in the drop-down list for the Action property in the Object Inspector.

Align#

Determines how the control aligns within its container (parent control). Use Align to align a control to the top, bottom, left, or right of a form or panel and have it remain there even if the size of the form, panel, or component that contains the control changes. When the parent is resized, an aligned control also resizes so that it continues to span the top, bottom, left, or right edge of the parent. For example, to use a panel component with various controls on it as a tool palette, change the panel’s Align value to alLeft. The value of alLeft for the Align property of the panel guarantees that the tool palette remains on the left side of the form and always equals the client height of the form. The default value of Align is alNone, which means a control remains where it is positioned on a form or panel.

Tip: If Align is set to alClient, the control fills the entire client area so that it is impossible to select the parent form by clicking it. In this case, select the parent by selecting the control on the form and pressing ESC, or by using the Object Inspector. Any number of child components within a single parent can have the same Align value, in which case they stack up along the edge of the parent. The child controls stack up in z-order. To adjust the order in which the controls stack up, drag the controls into their desired positions.

Note: To cause a control to maintain a specified relationship with an edge of its parent, but not necessarily lie along one edge of the parent, use the Anchors property instead.

AlignWithMargins#

Specifies whether a control should be constrained by margins. If AlignWithMargins is true, use the Margins property of the control to govern the spacing relative to other controls that are aligned with this one. The controls are not allowed to be any closer than the spacing specified in Margins. This spacing is maintained as controls are moved when the parent control resizes. AlignWithMargins is true if the style csAlignWithMargins, a TControlStyle type, is in the control’s ControlStyle property, and false otherwise.

Anchors#

Specifies how the control is anchored to its parent. Use Anchors to ensure that a control maintains its current position relative to an edge of its parent, even if the parent is resized. When its parent is resized, the control holds its position relative to the edges to which it is anchored. If a control is anchored to opposite edges of its parent, the control stretches when its parent is resized. For example, if a control has its Anchors property set to [akLeft, akRight], the control stretches when the width of its parent changes. Anchors is enforced only when the parent is resized. Thus, for example, if a control is anchored to opposite edges of a form at design time and the form is created in a maximized state, the control is not stretched because the form is not resized after the control is created.

Note: If a control should maintain contact with three edges of its parent (hugging one side of the parent and stretching the length of that side), use the Align property instead. Unlike Anchors, Align allows controls to adjust to changes in the size of other aligned sibling controls as well as changes to the parent’s size.

BeginDrag(Immediate: Boolean, Threshold: Integer)#

Starts the dragging of a control. Call BeginDrag to start a drag operation. BeginDrag is called in application code only when the value of the control’s DragMode is dmManual. If DragMode is dmAutomatic, BeginDrag is called automatically. If the Immediate parameter is true, the mouse pointer changes to the value of the DragCursor property and dragging begins immediately. If Immediate is false, the mouse pointer does not change to the value of the DragCursor property and dragging does not begin until the user moves the mouse pointer the number of pixels specified by the Threshold parameter. If the caller passes a Threshold value less than 0 (such as the default value for this parameter), BeginDrag uses the DragThreshold property of the global Mouse variable. Setting Immediate to false allows the control to accept mouse clicks without beginning a drag-and-drop or drag-and-dock operation.

BiDiMode#

Specifies the bidirectional mode for the control. Use BiDiMode to enable the control to adjust its appearance and behavior automatically when the application runs in a locale that reads from right to left instead of left to right. The bidirectional mode controls the reading order for the text, the placement of the vertical scroll bar, and whether the alignment is changed. Alignment does not change for controls that are known to contain number, date, time, or currency values. For example, with data-aware controls, the alignment does not change for the following field types: ftSmallint, ftInteger, ftWord, ftFloat, ftCurrency, ftBCD, ftDate, ftTime, ftDateTime, ftAutoInc.

BoundsRect#

Specifies the bounding rectangle of the control, expressed in the coordinate system of the parent control. Use BoundsRect as a quick way to obtain the pixel locations of all corners of the control all at once. For example, the statement

R := Control.BoundsRect;

R = Control->BoundsRect;

corresponds to

R.Left := Control.Left; R.Top := Control.Top; R.Right := Control.Left + Control.Width; R.Bottom := Control.Top + Control.Height;

R.Left = Control->Left; R.Top = Control->Top; R.Right = Control->Left + Control->Width; R.Bottom = Control->Top + Control->Height;

The origin of the pixel coordinate system is in the upper-left corner of the parent window.

Note: A point is considered within the control’s bounds rectangle if it lies on the left or top side but not if it lies on the right or bottom side. That is, to be inside the bounds rectangle, the x-coordinate must be greater than or equal to BoundsRect.Left and less than BoundsRect.Right, and the y-coordinate must be greater than or equal to BoundsRect.Top and less than BoundsRect.Bottom.

BringToFront()#

Puts the control in front of all other controls in its parent control. Call BringToFront to ensure that a form is visible or to reorder overlapping controls within a form. Note that controls that wrap Windows screen objects (control classes descended from TWinControl) always “stack” above lightweight controls (control classes descended from TGraphicControl). BringToFront can force a lightweight control, such as a Shape, to stack above other lightweight controls, but wrapped controls, such as an Edit, will still stack above the Shape. Without BringToFront, controls are stacked in the order they were placed on the form.

CheckNonMainThreadUsage()#

Embarcadero Technologies does not currently have any additional information.

ClientHeight#

Specifies the height of the control’s client area in pixels. Use ClientHeight to read or change the height of the control’s client area. For TControl, ClientHeight is the same as Height. Derived classes may implement a ClientHeight property that differs from Height. For example, the ClientHeight of a form is the value of the Height property minus the height of the title bar, resize border, and scroll bars.

ClientOrigin#

Specifies the screen coordinates (in pixels) of the upper-left corner of a control’s client area. Read ClientOrigin to locate the upper-left corner of the control’s client area. ClientOrigin returns X and Y coordinates as a TPoint type, where X specifies the horizontal coordinate of the point and Y specifies the vertical coordinate. The screen coordinates of a control that is descended from TControl and not TWinControl are the screen coordinates of the control’s parent added to its Left and Top properties. If the control doesn’t have a parent, an EInvalidOperation exception is raised when ClientOrigin is read.

ClientRect#

Specifies the size of a control’s client area in pixels. Read ClientRect to find out the size of the client area of a control. ClientRect returns a rectangle with its Top and Left fields set to zero, and its Bottom and Right fields set to the control’s Height and Width, respectively. ClientRect is equivalent to Rect(0, 0, ClientWidth, ClientHeight). A point is considered within the control’s client rectangle if it lies on the left or top side but not if it lies on the right or bottom side. That is, to be inside the client rectangle, the X-coordinate must be greater than or equal to ClientRect.Left and less than ClientRect.Right, and the Y-coordinate must be greater than or equal to ClientRect.Top and less than ClientRect.Bottom.

Note: ClientRect is the size of the physical client area of the control, not its logical client area. If the control supports scrolling, the ClientRect is not the entire scrolling range, but only the region that is available at any given time.

ClientToParent(Point: Point, AParent: WinControl) Point#

Translates client coordinates to parent coordinates. ClientToParent translates Point from the current control’s coordinate system to AParent’s coordinate system. AParent must be a control that can be found by iterating up the chain of Parent properties. If AParent is nil (Delphi) or NULL (C++), the control’s immediate parent is used. An EInvalidOperation exception is thrown if AParent is not an ancestor control or the Parent property is nil (Delphi) or NULL (C++).

ClientToScreen(Point: Point) Point#

Translates a given point from client area coordinates to global screen coordinates. Use ClientToScreen to convert a point whose coordinates are expressed locally to the control to the corresponding point in screen coordinates. In client area coordinates, (0, 0) corresponds to the upper-left corner of the control’s client area. In screen coordinates, (0, 0) corresponds to the upper-left corner of the screen. Use ScreenToClient along with ClientToScreen to convert from one control’s coordinate system to another control’s coordinate system. For example,

P?:= TargetControl.ScreenToClient(SourceControl.ClientToScreen(P));

P = TargetControl->ScreenToClient(SourceControl->ClientToScreen(P));

converts P from coordinates in SourceControl to coordinates in TargetControl. Translates a given point from client area coordinates to global screen coordinates. Use ClientToScreen to convert a point whose coordinates are expressed locally to the control to the corresponding point in screen coordinates. In client area coordinates, (0, 0) corresponds to the upper-left corner of the control’s client area. In screen coordinates, (0, 0) corresponds to the upper-left corner of the screen. Use ScreenToClient along with ClientToScreen to convert from one control’s coordinate system to another control’s coordinate system. For example,

P?:= TargetControl.ScreenToClient(SourceControl.ClientToScreen(P));

P = TargetControl->ScreenToClient(SourceControl->ClientToScreen(P));

converts P from coordinates in SourceControl to coordinates in TargetControl.

ClientWidth#

Specifies the horizontal size of the control’s client area in pixels. Use ClientWidth to read or change the width of the control’s client area. ClientWidth is equivalent to ClientRect.Right. For TControl, ClientWidth is the same as Width. Derived classes may implement a ClientWidth property that differs from Width. For example, the ClientWidth of a form is the value of the Width property minus the width of the resize border and scroll bars.

Constraints#

Specifies the size constraints for the control. Use Constraints to specify the minimum and maximum width and height of the control. When Constraints contains maximum or minimum values, the control cannot be resized to violate those constraints.

Note: Constraints apply to the height of the form. However, the height of the form depends on how large Windows makes the title bar. For example, Windows XP uses much larger title bars than other windowing systems. To work around this, note the ClientHeight when you design your form and set the constraints in the FormCreate event. In the following example, ClientHeight is represented by x: Constraints.MinHeight?:= x + Height - ClientHeight. Warning: Do not set up constraints that conflict with the value of the Align or Anchors property. When these properties conflict, the response of the control to resize attempts is not well-defined.

ControlState#

Specifies the current state of a control at run time. Read ControlState to find out various conditions that affect the control such as whether it has been clicked or needs alignment. ControlState reflects transient conditions of an instance of the control, as opposed to attributes of the control class as a whole. ControlState consists of a set of flags drawn from the following values:

Flag

Meaning

csLButtonDown

The left mouse button was clicked and not yet released. This is set for all mouse-down events.

csClicked

The same as csLButtonDown, but only set if ControlStyle contains csClickEvents, meaning that mouse-down events are interpreted as clicks.

csPalette

The system palette has changed and the control or one of its descendants has not finished adjusting by realizing its palette.

csReadingState

The control is reading its state from a stream.

csAlignmentNeeded

The control needs to realign itself when alignment is re-enabled.

csFocusing

The application is processing messages intended to give the control focus. This does not guarantee the control will receive focus, but prevents recursive calls.

csCreating

The control and/or its owner and subcontrols are being created. This flag clears when all have finished creating.

csPaintCopy

The control is being replicated, meaning a copy of the control is being painted. The ControlStyle flag csReplicatable must be set for this state to occur.

csCustomPaint

The control is processing custom paint messages.

csDestroyingHandle

The control’s window is being destroyed.

csDocking

The control is being docked.

The flags in ControlState are specific to controls, and augment the state flags in the ComponentState property. ControlState is primarily used by component writers in the implementation of components derived from TControl.

ControlStyle#

Determines style characteristics of the control. Use ControlStyle to determine various attributes of the control, such as whether the control can capture the mouse or has a fixed size. The ControlStyle property contains a set of style flags indicating these attributes. The following table lists the flags and their meanings:

Flag

Meaning

csAcceptsControls

The control becomes the parent of any controls dropped on it at design time.

csCaptureMouse

The control captures mouse events when it is clicked.

csDesignInteractive

The control maps right mouse button clicks at design time into left mouse button clicks to manipulate the control.

csClickEvents

The control can receive and respond to mouse clicks. Some controls may not inherit this attribute, for example, TButton.

csFramed

The control has a 3D frame.

csSetCaption

The control’s Caption should match the Name if it has not been explicitly set to something else.

csOpaque

The control completely fills its client rectangle.

csDoubleClicks

The control can receive and respond to double-click messages. Otherwise, map double-clicks into clicks.

csFixedWidth

The width of the control does not vary or scale.

csFixedHeight

The height of the control does not vary or scale.

csNoDesignVisible

The control is not visible at design time.

csReplicatable

The control can be copied using the PaintTo method to draw its image to an arbitrary canvas.

csNoStdEvents

Standard events such as mouse, key, and click events are ignored. This flag allows an application to run faster when there is no need to respond to these events.

csDisplayDragImage

If a control that has an associated drag image list is dragged across a control with this setting, then the image list is used to enhance the drag cursor while the cursor is over it. Otherwise, the drag cursor is used on its own.

csReflector

The control responds to Windows dialog messages, focus messages, or size change messages. Use this setting if the control can be used as an ActiveX control, so that it receives notification of these events.

csActionClient

The control is linked to an action object. This flag is set when the Action property is set, and cleared if the Action property is cleared.

csMenuEvents

The control responds to system menu commands.

ControlStyle describes all controls instantiated from a given class. ControlStyle should not be modified at run time, except in the constructor. The ControlState property records transient conditions. The TControl constructor initializes ControlStyle to the set of csCaptureMouse, csClickEvents, csSetCaption, and csDoubleClicks. ControlStyle is primarily used by component writers when implementing components derived from TControl.

Create(AOwner: Component)#

Creates an instance of TControl. Calling Create constructs and initializes an instance of TControl. However, you should never attempt to instantiate a TControl. This class is intended solely as a base class from which other control classes descend and you should only call Create to instantiate one of these descendants. Create calls the parent constructor and initializes the control. When overriding Create, always call the inherited Create method first, then proceed with the control’s initialization. Remember to specify the override directive when overriding the Create method.

Note: If a control’s constructor allocates resources or memory, also override the destructor to free those resources.

CurrentPPI#

Embarcadero Technologies does not currently have any additional information.

Cursor#

Specifies the image used to represent the mouse pointer when it passes into the region covered by the control. Change the value of Cursor to provide feedback to the user when the mouse pointer enters the control. The value of Cursor is the index of the cursor in the list of cursors maintained by the global variable, Screen. In addition to the built-in cursors provided by TScreen, applications can add custom cursors to the list.

CustomHint#

CustomHint is a custom hint for the control. CustomHint is a TCustomHint instance for a control to specify the appearance of the control’s hint.

DefaultHandler(Message)#

Provides message handling for all messages that do not have specific handlers. Override DefaultHandler to extend the default handling of messages. DefaultHandler is the final opportunity for component writers to handle messages to controls. The method referenced by WindowProc provides the first opportunity. Individual message methods such as Click provide additional opportunities. DefaultHandler handles the messages Windows sends to manage the control’s text: WM_GETTEXT, WM_SETTEXT, and WM_GETTEXTLENGTH.

Destroy()#

Destroys an instance of TControl. Do not call Destroy directly in an application. Instead, call Free. Free verifies that the control is not nil, and only then calls Destroy. Applications should only free controls explicitly when the constructor was called without assigning an owner to the control. As the control is destroyed, it:

Frees the TFont object in its Font property. Calls its inherited destructor. Override Destroy to free any memory or resources allocated in the Create method. When declaring a Destroy method in a descendent control type, always add the override directive to the declaration and call the inherited Destroy as the last statement in the redeclared method. When a control is created, Delphi automatically provides exception handling around the constructor call. The destructor is called if an exception escapes from the constructor. This means that the destructor code must be prepared to clean up a partially constructed instance. Check all data fields for zero before disposing of their contents.

Dock(NewDockSite: WinControl, ARect: Rect)#

Used internally to dock the control. Do not call Dock in applications. It is called automatically to implement many of the details of docking the control to a dock site. To dock the control programmatically, use ManualDock instead. The NewDockSite parameter specifies the docking site to which the control is being docked. The ARect parameter indicates the new dimensions of the control when it is docked to NewDockSite.

DockOrientation#

DockOrientation specifies how the control is docked relative to other controls docked in the same parent. Use DockOrientation to determine the position of the control relative to other controls docked to the same parent. Docking zones can be arranged from left to right or from top to bottom.

DragDrop(Source: Object, X: Integer, Y: Integer)#

Is an OnDragDrop event dispatcher. When creating a component that descends from TControl, override DragDrop to add additional code that executes before the OnDragDrop event handler is called. The Source parameter is the object that was dropped onto the control. The X and Y parameters are the mouse coordinates where the object was dropped.

Dragging()#

Indicates whether a control is being dragged. Use Dragging to determine the drag state of the control. If Dragging returns true, the control is being dragged. If Dragging is false, the control is not being dragged.

DrawTextBiDiModeFlags(Flags: Integer) Integer#

Returns the text flags that reflect the current setting of the BiDiMode property. Call DrawTextBiDiModeFlags to obtain a value for the TextFlags property of a canvas when drawing the control’s text or caption. The return value can also be used with the Windows API DrawText function. Flags are the current text flags, unaltered by any bidirectional mode considerations. DrawTextBiDiModeFlags adds or removes the DT_RIGHT or DT_RTLREADING flags based on the values returned from the UseRightToLeftAlignment and UseRightToLeftReading methods.

DrawTextBiDiModeFlagsReadingOnly()#

Returns the text flag to add that indicates whether the control’s text should read from right to left. Call DrawTextBiDiModeFlagsReadingOnly to determine whether the DT_RTLREADING flag should be added when calling the Windows API DrawText or when assigning the TextFlags property of a canvas. DrawTextBiDiModeFlagsReadingOnly returns the DT_RTLREADING flag or 0, depending on the value returned from the UseRightToLeftReading method. To obtain the text flags that indicate the bidirectional alignment as well as text direction for the control, use DrawTextBiDiModeFlags instead.

Enabled#

Controls whether the control responds to mouse, keyboard, and timer events. Use Enabled to change the availability of the control to the user. To disable a control, set Enabled to False. Some disabled controls appear dimmed (for example: buttons, check boxes, labels), while others (container controls) simply lose their functionality without changing their appearance. If Enabled is set to False, the control ignores mouse, keyboard, and timer events. To re-enable a control, set Enabled to True.

Note: This property applies to all TControl descendants.

EndDrag(Drop: Boolean)#

Stops a control from being dragged any further. Use EndDrag to stop a dragging operation that began with a call to the BeginDrag method. If the Drop parameter is true, the control being dragged is dropped or docked. If the Drop parameter is false, the control is not dropped or docked and dragging is canceled.

ExplicitHeight#

Specifies the explicit vertical size of the control in pixels. ExplicitHeight is a read-only property used internally by Delphi. Use Height in applications to allow read and write access.

ExplicitLeft#

Specifies the explicit horizontal pixel coordinate of the left edge of a component relative to its parent. ExplicitLeft is a read-only property used internally by Delphi. Use Left in applications to allow read and write access.

ExplicitTop#

Specifies the explicit vertical pixel coordinate of the top edge of a component relative to its parent. ExplicitTop is a read-only property used internally by Delphi. Use Top in applications to allow read and write access.

ExplicitWidth#

Specifies the explicit horizontal size of the control in pixels. ExplicitWidth is a read-only property used internally by Delphi. Use Width in applications to allow read and write access.

Floating#

Specifies whether the control is floating. Read Floating to determine whether a dockable control appears in a floating window, rather than docked to a parent control.

Note: Use Floating rather than the Parent property to determine whether a control is free-floating. Floating controls may have a non-nil (Delphi) or NULL (C++) parent if the FloatingDockSiteClass property specifies a floating window type.

FloatingDockSiteClass#

Specifies the class of the temporary control that hosts the control when it is floating. Use FloatingDockSiteClass to specify the class that houses the control when it is floating. This class must be a descendant of TWinControl. By default, it is TCustomDockForm. When the control is undocked, a temporary control of this type is created and the control is docked to that control. When the control is docked to another control, the temporary floating dock site is freed. If the control can float as a stand-alone window, FloatingDockSiteClass is nil (Delphi) or NULL (C++).

GetControlsAlignment()#

Indicates how text is aligned within the control. Use GetControlsAlignment to determine the alignment of the control. For controls that do not have an Alignment property, GetControlsAlignment returns taLeftJustify.

Note: GetControlsAlignment returns the alignment of text before it is altered by the BiDiMode property. To check whether the alignment should be reversed to reflect the BiDiMode property, call UseRightToLeftAlignment.

GetParentComponent()#

Returns the parent of the control. GetParentComponent is called by the streaming system that loads and saves VCL components. The component returned by GetParentComponent is responsible for loading and saving the control when it is streamed in or out. As implemented in TControl, GetParentComponent returns the value of the Parent property.

GetStyleName()#

Embarcadero Technologies does not currently have any additional information.

GetSystemMetrics(nIndex: Integer) Integer#

Embarcadero Technologies does not currently have any additional information.

GetTextBuf(Buffer: PWideChar, BufSize: Integer) Integer#

Retrieves the control’s text, copies it into a buffer, and returns the number of characters copied. Call GetTextBuf to retrieve the text of a control into a fixed size buffer. The text copied is the value of the Text property. GetTextBuf returns the number of characters that were actually copied, which is either the length of the Text property, or BufSize - 1, whichever is smaller. To find out how many characters the buffer needs to hold the entire text, call the GetTextLen method before allocating a buffer for GetTextBuf.

Note: GetTextBuf is available for compatibility with 16-bit code. Where backward compatibility is not an issue, use the Text property. Note: To obtain the control’s text as an AnsiString, use the Text property instead.

GetTextLen()#

Returns the length of the control’s text. Call GetTextLen to find the length of the control’s text. This is the size needed for a text buffer to be used by the GetTextBuf method.

HasParent()#

Indicates whether the control has a parent. HasParent indicates whether the Parent property has been assigned a value. This method is used by the streaming system to determine whether the control has a parent that is responsible for writing it to a stream. As implemented in TControl, HasParent returns true if the Parent property is not nil (Delphi) or NULL (C++), and false otherwise.

Height#

Specifies the vertical size of the control in pixels. Use the Height property to read or change the height of the control.

HelpContext#

The HelpContext property contains the numeric context ID that identifies the Help topic for the control. In case of a .chm help file, you must map symbolic Context IDs of Help topics to numeric topic ID values in the [MAP] section of your project (.hhp) file. To enable Context ID-based context-sensitive Help for a control, set Vcl.Controls.TControl.HelpType to htContext and set HelpContext to a numeric topic ID. A topic ID of 0 (default) means that no Help topic is provided for the control. To use the Help, insert in the uses clause of your application the Vcl.HtmlHelpViewer or another unit that provides an interface to the external Help viewer to use. For C++, you need to include the HTMLHelpViewer.hpp header file.

HelpKeyword#

The HelpKeyword property contains the keyword string that identifies the Help topic for the control. To enable the keyword-based context-sensitive Help for a control, set Vcl.Controls.TControl.HelpType to htKeyword and set HelpKeyword to a keyword string. No keyword (zero-length string, the default) means that no Help topic is provided for the control. To use the Help, insert in the uses clause of your application the Vcl.HtmlHelpViewer or other unit that provides an interface to the external Help viewer to use. For C++, you need to include the HTMLHelpViewer.hpp header file.

HelpType#

Specifies whether the control’s context-sensitive Help topic is identified by a context ID or by keyword. Set HelpType to specify whether the control identifies its context-sensitive Help topic by a context ID or by keyword:

When HelpType is htContext, the HelpContext property value identifies the control’s Help topic. When HelpType is htKeyword, the HelpKeyword property value identifies the control’s Help topic. To use the Help, insert in the uses clause of your application the Vcl.HtmlHelpViewer or another unit that provides an interface to the external Help viewer to use. For C++, you need to include the HTMLHelpViewer.hpp header file.

Hide()#

Makes the control invisible. Call Hide to hide a control. Hide sets the Visible property of the control to false. Although a control that is hidden is not visible, its properties and methods are still available.

Hint#

Hint contains the text string that appears when the user moves the mouse over the control. Use the Hint property to provide a string of Help text either as a Help Hint or as Help text on a particular location, such as a status bar. A Help Hint is a box containing Help text that appears for a control when the user moves the mouse pointer over the control and pauses momentarily. To set up Help Hints

Specify the Hint property of each control for which a Help Hint should appear. Set the ShowHint property of each appropriate control to True, or set the ParentShowHint property of all controls to True and set the ShowHint property of the form to True. At run time, set the value of the application’s ShowHint property to True. To show the Hint on a status bar or another location, use the OnHint event handler of the application. The application’s OnHint event occurs when the mouse pointer moves over the control. Specify a hint to be used for both a Help Hint box and by an OnHint event handler by specifying values separated by a | (pipe) character. For example,

Edit1.Hint := ‘Name|Enter Name in the edit box|1’;

Edit1->Hint = “Name|Enter Name in the edit box|1”;

Here:

The Name part is the short hint and appears at the top of the Help Hint box. Enter full name in the edit box is the long hint and appears below the short hint. It can be extracted using the GetLongHint function for use in an OnHint event handler. 1 is an optional image index in an image list in the Images property of the control and specifies the index of the image to appear in the hint. If Hint contains only one value, the entire string is used as a Help Hint and returned by the GetLongHint and GetShortHint functions. If a control has no Hint value specified, but its parent control does, the control uses the value of the parent control (as long as the control’s ShowHint property is True).

Note: If the application’s ShowHint property is False, the Help Hint does not appear, but the OnHint event handler is still called.

HostDockSite#

Specifies the control in which the control is docked. Read HostDockSite to access the windowed control to which the control is docked. If the control is floating, HostDockSite is a temporary control of type FloatingDockSiteClass, or (if there is no floating dock site class) nil (Delphi) or NULL (C++). Most applications should use the ManualDock method rather than setting HostDockSite. Setting HostDockSite automatically undocks the control from its previous host (if any) and docks it to the specified control, but does not adjust the control’s position and alignment and bypasses the standard docking events. For dock clients, the value of HostDockSite is the same as the value of Parent. For controls that are not docking clients, HostDockSite is nil (Delphi) or NULL (C++), while Parent specifies the containing control.

InitiateAction()#

Calls the action link’s Update method if the control is associated with an action link. When the application is idle, the library makes a series of calls to allow controls to update their associated actions so that they reflect the current properties of the controls. The first of these is to the InitiateAction method of the each form, followed by the InitiateAction methods of its visible menus and controls. InitiateAction calls the action’s update method indirectly (through its action link), which leads to a number of events, any of which may update the action and stop the update process:

First, the action list that contains the action receives an OnUpdate event. If the action list does not handle the OnUpdate event, then the Application object receives an OnActionUpdate event. If the OnActionUpdate event handler does not update the action, the action itself receives an OnUpdate event. If that does not update the action, the active control’s UpdateAction method is called. Finally, if the action is still not updated, the active form’s UpdateAction method is called.

Invalidate()#

Completely repaints the control. Use Invalidate when the entire control needs to be repainted. When more than one region within the control needs repainting, Invalidate will cause the entire window to be repainted in a single pass, avoiding flicker caused by redundant repaints. There is no performance penalty for calling Invalidate multiple times before the control is actually repainted.

IsCustomStyleActive()#

Embarcadero Technologies does not currently have any additional information.

IsLightStyleColor(AColor: Color) Boolean#

Embarcadero Technologies does not currently have any additional information.

IsRightToLeft()#

Indicates whether the control should be reversed right to left. Use IsRightToLeft to determine whether the control should be reversed in any way because it is running on a system with a Middle Eastern locale. IsRightToLeft is intended for component writers to ease the process of implementing the BiDiMode property. IsRightToLeft returns true if the application is running on a Middle East-enabled version of Windows and the BiDiMode property indicates that the control should make any adjustments.

LRDockWidth#

Specifies the width of the control when it is docked horizontally. Read LRDockWidth to get the width of the control from the last time it was docked horizontally. Set LRDockWidth to indicate the width the control should have the next time it is docked horizontally. LRDockWidth allows a control to “remember” its docked size even when its width changes because it is undocked or docked with a vertical orientation.

Left#

Specifies the horizontal coordinate of the left edge of a component relative to its parent. Use the Left property to determine where the left side of the control begins or to reposition the left side of the control. If the control is contained in another control, the Left and Top properties are relative to the parent control. If the control is contained directly by the form, the property values are relative to the form. For forms, the value of the Left property is relative to the screen in pixels.

ManualDock(NewDockSite: WinControl, DropControl: Control, ControlSide: Align) Boolean#

Docks the control. Use ManualDock to dock the control programmatically. ManualDock undocks the control from its current dock site, then docks the control to its new dock site. NewDockSite is the control’s new dock site. DropControl is the control in the new dock site, if any, on which to drop the control. For example, when docking to a page control, DropControl would be a tab sheet. ControlSide specifies on which side of DropControl or NewDockSite (if DropControl is nil (Delphi) or NULL (C++)) the control should be docked. This value can be obtained by calling the dock site’s GetDockEdge method.

ManualFloat(ScreenPos: Rect) Boolean#

Undocks the control. Use ManualFloat to undock the control programmatically. ScreenPos is the rectangle in which the control is displayed when it starts floating.

Margins#

Specifies the margins of the control. Use the Margins property to set the margins of the control. If AlignWithMargins is true, then the Margins property of the control governs the spacing relative to other controls that are aligned with this one. The controls are not allowed to be closer than the spacing specified in Margins.

Note: The Margins you set for the control have effect only when AlignWithMargins is set to true and Align is not set to alNone.

MouseWheelHandler(Message: Message)#

Dispatches messages received from a mouse wheel. The WndProc method calls MouseWheelHandler when it receives a mouse wheel message. MouseWheelHandler checks whether the windowed control is embedded in a form, and if so, calls the form’s MouseWheelHandler method. This allows the form to respond to mouse wheel messages before they are handled by individual controls. If the windowed control is not in a form, MouseWheelHandler passes the mouse wheel message to the Perform method, which generates an OnMouseWheel event, followed (if necessary) by an OnMouseWheelUp or OnMouseWheelDown event.

OnGesture#

<Delphi property OnGesture of type TControl at 211418EC500>

Parent#

Specifies the parent of the control. Use the Parent property to get or set the parent of the control. The parent of a control is the control that contains it. For example, if an application includes three radio buttons in a group box, the group box is the parent of the three radio buttons, and the radio buttons are the child controls of the group box. To serve as a parent, a control must be an instance of a TWinControl descendant. When creating a new control at run time, assign a Parent property value for the new control. Usually, this is a form, panel, group box, or a control that is designed to contain another. Changing the parent of a control moves the control onscreen so that it is displayed within the new parent. When the parent control moves, the child moves with the parent. Some controls (such as ActiveX controls) are contained in native windows rather than in a parent VCL control. For these controls, the value of Parent is nil (Delphi) or NULL (C++) and the ParentWindow property specifies the window.

Note: The Parent property declared in TControl is similar to the Owner property declared in TComponent, in that the Parent of a control frees the control just as the Owner of a component frees that component. However, the Parent of a control is always a windowed control that visually contains the control, and is responsible for writing the control to a stream when the form is saved. The Owner of a component is the component that was passed as a parameter in the constructor and, if assigned, initiates the process of saving all objects (including the control and its parent) when the form is saved.

ParentCustomHint#

Specifies where a control looks for its custom hint. To have a control use the same hint customization information as its parent control, set ParentCustomHint to true. If ParentCustomHint is false, the control uses its own CustomHint property. Set ParentCustomHint to true for all controls to ensure that all the controls on a form display their hint messages alike. When the value of a control’s CustomHint property changes, ParentCustomHint becomes false automatically.

ParentToClient(Point: Point, AParent: WinControl) Point#

Translate parent coordinates to client coordinates. ParentToClient translates Point from the AParent’s coordinate system to the current control’s coordinate system. AParent must be a control that can be found by iterating up the chain of Parent properties. If AParent is nil (Delphi) or NULL (C++), the control’s immediate parent is used. An EInvalidOperation exception is thrown if AParent is not an ancestor control or the Parent property is nil (Delphi) or NULL (C++).

Perform(Msg: Cardinal, WParam: NativeUInt, LParam: NativeInt) NativeInt#

Responds as if the control received a specified Windows message. Call Perform to bypass the Windows message queue and send a message directly to the control’s window procedure. Perform fills a message record (of type TMessage) with the message ID passed in the Msg parameter, the message parameters passed in WParam and LParam, and a result field of zero. Perform then passes the message record to the WindowProc method for processing. Responds as if the control received a specified Windows message. Call Perform to bypass the Windows message queue and send a message directly to the control’s window procedure. Perform fills a message record (of type TMessage) with the message ID passed in the Msg parameter, the message parameters passed in WParam and LParam, and a result field of zero. Perform then passes the message record to the WindowProc method for processing. Responds as if the control received a specified Windows message. Call Perform to bypass the Windows message queue and send a message directly to the control’s window procedure. Perform fills a message record (of type TMessage) with the message ID passed in the Msg parameter, the message parameters passed in WParam and LParam, and a result field of zero. Perform then passes the message record to the WindowProc method for processing.

Refresh()#

Repaints the control on the screen. Call the Refresh method to repaint the control immediately. Refresh calls the Repaint method. Use the Refresh and Repaint methods interchangeably.

Repaint()#

Forces the control to repaint its image on the screen. Call Repaint to force the control to repaint its image immediately. If the ControlStyle property includes csOpaque, the control paints itself directly. Otherwise, the Repaint method calls the Invalidate method and then the Update method so that any visible portions of controls beneath the control will be repainted as well.

ReplaceDockedControl(Control: Control, NewDockSite: WinControl, DropControl: Control, ControlSide: Align) Boolean#

Docks the control in the place where another control is already docked. Call ReplaceDockedControl to replace a control that is already docked while moving that control to another dock site. Control is the control whose place this control is taking. NewDockSite is the new dock site for the control that is replaced. DropControl is a control in the new dock site on which to drop the control that is replaced. For example, if NewDockSite were a page control, DropControl would be a tab sheet. ControlSide specifies on which side of DropControl or NewDockSite (if DropControl is nil (Delphi) or NULL (C++)) the replaced control should be docked. This value can be obtained by calling the dock site’s GetDockEdge method. ReplaceDockedControl does the same thing as calling the ManualDock method of the control specified by the Control parameter (using the values of NewDockSite, DropControl, and ControlSide) in addition to calling ManualDock for the control whose method this is, docking it in the current position of the Control parameter. However, calling ReplaceDockedControl is more efficient, and prevents unnecessary flicker.

ScaleFactor#

Embarcadero Technologies does not currently have any additional information.

ScaleForPPI(NewPPI: Integer)#

Embarcadero Technologies does not currently have any additional information.

ScaleRectSize(Value: Rect) Rect#

Embarcadero Technologies does not currently have any additional information.

ScaleValue(Value: Integer) Integer#

The overloaded ScaleValue methods return a measure passed as parameter scaled by the current scale factor for the control (the value of the ScaleFactor read-only property). The overloaded ScaleValue methods return a measure passed as parameter scaled by the current scale factor for the control (the value of the ScaleFactor read-only property). The overloaded ScaleValue methods return a measure passed as parameter scaled by the current scale factor for the control (the value of the ScaleFactor read-only property). The overloaded ScaleValue methods return a measure passed as parameter scaled by the current scale factor for the control (the value of the ScaleFactor read-only property). The overloaded ScaleValue methods return a measure passed as parameter scaled by the current scale factor for the control (the value of the ScaleFactor read-only property).

ScreenToClient(Point: Point) Point#

Converts the screen coordinates of a specified point on the screen to client coordinates. Use ScreenToClient to convert a point in screen coordinates to local, or client area, coordinates. In client area coordinates (0, 0) corresponds to the upper-left corner of the control’s client area. In screen coordinates (0, 0) corresponds to the upper-left corner of the screen. Use ScreenToClient along with ClientToScreen to convert from one control’s coordinate system to another control’s coordinate system. For example,

P := TargetControl.ScreenToClient(SourceControl.ClientToScreen(P));

P = TargetControl->ScreenToClient(SourceControl->ClientToScreen(P));

converts P from coordinates in SourceControl to coordinates in TargetControl. Converts the screen coordinates of a specified point on the screen to client coordinates. Use ScreenToClient to convert a point in screen coordinates to local, or client area, coordinates. In client area coordinates (0, 0) corresponds to the upper-left corner of the control’s client area. In screen coordinates (0, 0) corresponds to the upper-left corner of the screen. Use ScreenToClient along with ClientToScreen to convert from one control’s coordinate system to another control’s coordinate system. For example,

P := TargetControl.ScreenToClient(SourceControl.ClientToScreen(P));

P = TargetControl->ScreenToClient(SourceControl->ClientToScreen(P));

converts P from coordinates in SourceControl to coordinates in TargetControl.

SendToBack()#

Puts a windowed control behind all other windowed controls, or puts a non-windowed control behind all other non-windowed controls. Use SendToBack to change the order of overlapping controls or forms. The order in which controls stack on top of each other (also called the Z order) depends on the order the controls are placed on the form. For example, if you put a label and an image on a form so that one is on top of the other, the one that was placed first on the form becomes the one on the bottom. Because both the label and the image are non-windowed controls, they “stack” as you would expect them to. Call the SendToBack method for the top object to move it below the other object. The stacking order of two windowed controls is the same as the stacking of two non-windowed controls. For example, if you put a memo on a form, then put a check box on top of it, the check box remains on top. Calling SendToBack for the check box makes the memo appear on top. The stacking order of windowed and non-windowed controls cannot be mingled. For example, if you put a memo, a windowed control on a form, and then put a label, a non-windowed control on top of it, the label disappears behind the memo. Windowed controls always stack on top of non-windowed controls. In this example, calling the SendToBack method of the memo does nothing, the label remains behind the memo. If the control has the input focus when the SendToBack method executes, it loses the input focus.

SetBounds(ALeft: Integer, ATop: Integer, AWidth: Integer, AHeight: Integer)#

Sets the Left, Top, Width, and Height properties all at once. Use SetBounds to change all of the component’s boundary properties at one time. The same effect can be achieved by setting the Left, Top, Width, and Height properties separately, but SetBounds changes all four properties at once ensuring that the control will not repaint between changes. Specify the values for the Left, Top, Width, and Height properties as the value of the ALeft, ATop, AWidth, and AHeight parameters, respectively. Calling SetBounds does not necessarily result in the Left, Top, Width, and Height properties changing to the specified values. Before the properties are changed, the AutoSize or Constraints property may limit the changes, and an OnCanResize (or OnConstrainedResize) event handler may change the new values. After the control’s Left, Top, Width, and Height properties are changed, SetBounds generates an OnResize event.

Note: Component writers can change the Left, Top, Width, and Height properties while bypassing all resize events and constraint or autosize logic by using the UpdateBoundsRect method instead.

SetDesignVisible(Value: Boolean)#

Makes a control visible at design time. SetDesignVisible is used internally by Delphi during form design.

SetParentComponent(Value: Component)#

Sets the parent for the control. Do not call the SetParentComponent method. It is used by the streaming system that loads and saves VCL components. SetParentComponent makes the component specified by the Value parameter the parent of the control. SetParentComponent calls the SetParent method only if the component specified as the parent is a windowed control.

SetTextBuf(Buffer: PWideChar)#

Sets the text of the control. Call the SetTextBuf method to set the text of the control to the text in the specified buffer. The text is set to the text in the buffer pointed to by the Buffer parameter. Buffer must point to a null-terminated string. The SetTextBuf method sends the WM_SETTEXT and CM_TEXTCHANGED messages. Doing this in the tight execution of a function can result in the change not being seen until messages from the Windows message queue are processed after the function finishes executing. To interrupt a function’s execution and process messages, use the ProcessMessages method of the Application object.

Note: The SetTextBuf method is provided for backwards compatibility only. To set the text of a control now, assign a string value to the Text property.

Show()#

Makes a control visible. Use the Show method to make visible a control that was previously hidden. The Show method sets the control’s Visible property to true and ensures that the parent control is also visible.

ShowHint#

ShowHint specifies whether to show the Help Hint when the mouse pointer moves over the control. ShowHint determines whether the Help Hint appears for the control. The Help Hint is the value of the TControl.Hint property. The Help Hint appears in a box just beneath the control when the mouse pointer moves over the control. To enable Help Hints for a particular control, two conditions must be satisfied:

The application’s ShowHint property must be True. Either the control’s own ShowHint property must be True, or the control’s ParentShowHint property must be True and its parent’s ShowHint property must be True. For example, imagine a check box within a group box. If the ShowHint property of the group box is True and the ParentShowHint property of the check box is True, but the ShowHint property of the check box is False, the check box still displays its Help Hint. Changing the ShowHint value automatically sets the ParentShowHint property to False.

StyleElements#

Specifies the style elements that are used by the control. Use StyleElements to customize the style of the control. If a custom style is enabled, you can enable or disable style elements in the control. StyleElements is a set of values that specify which elements of the current style are to be applied to this control. By default, all the elements of the style are enabled.

StyleName#

Embarcadero Technologies does not currently have any additional information.

TBDockHeight#

Specifies the height of the control when it is docked vertically. Read TBDockHeight to get the height of the control from the last time it was docked vertically. Set TBDockHeight to indicate the height the control should have the next time it is docked vertically. TBDockHeight allows a control to “remember” its docked size even when its height changes because it is undocked or docked with a horizontal orientation.

Top#

Specifies the Y coordinate of the upper-left corner of a control, relative to its parent or containing control in pixels. Use Top to locate the top of the control or reposition the control to a different Y coordinate. The Top property, like the Left property, is the position of the control relative to its container. Thus, if a control is contained in a TPanel, the Left and Top properties are relative to the panel. If the control is contained directly by the form, it is relative to the form. For forms, the value of the Top property is relative to the screen in pixels.

Touch#

Specifies the touch manager component associated with the control. Use the Touch property to access gesturing options associated with a control. Touch specifies a class of type TTouchManager. Touch is used to:

Associate a TGestureManager. (TGestureManager manages all the gestures that can be used by the control.) Select the standard, interactive, or custom gestures to associate with the control. (You can also connect each gesture to an action; see Assigning Actions to Gestures.) Specify a set of options for interactive or tablet gestures.

UndockHeight#

Specifies the height of the control when it is floating. Read UndockHeight to get the height of the control from the last time it was floating. Set UndockHeight to indicate the height the control should have the next time it is undocked. UndockHeight allows a control to “remember” its floating size even when its height changes because it is docked.

UndockWidth#

Specifies the width of the control when it is floating. Read UndockWidth to get the width of the control from the last time it was floating. Set UndockWidth to indicate the width the control should have the next time it is undocked. UndockWidth allows a control to “remember” its floating size even when its width changes because it is docked.

Update()#

Processes any pending paint messages immediately. Call Update to force the control to be repainted before any more, possibly time-consuming, processing takes place. Use Update to provide immediate feedback to the user that cannot wait for the Windows paint message to arrive. Update does not invalidate the control, but simply forces a repaint of any regions that have already been invalidated. Call Repaint instead to invalidate the control as well.

UseRightToLeftAlignment()#

Specifies whether the control’s alignment should be reversed right-to-left. Controls call UseRightToLeftAlignment when implementing the BiDiMode property. UseRightToLeftAlignment indicates whether the control’s alignment should be reversed right-to-left. This information can be used when painting the control or when responding to mouse events. UseRightToLeftAlignment returns True if the application is running on a system with a Middle Eastern locale and the BiDiMode property is bdRightToLeft. Otherwise, it returns False. Descendants override UseRightToLeftAlignment if alignment in Middle Eastern locales depends on other factors.

UseRightToLeftReading()#

Specifies whether the control is using a right-to-left reading order. Controls call UseRightToLeftReading when implementing the BiDiMode property. UseRightToLeftReading indicates whether the control’s text should read from right to left. This information can be used to determine which style flags to set for the control when it is created and which flags to set for drawing text. UseRightToLeftReading returns true if the application is running on a system with a Middle Eastern locale and the BiDiMode property is not bdLeftToRight. UseRightToLeftReading returns false otherwise.

UseRightToLeftScrollBar()#

Specifies whether the vertical scroll bar appears on the left side of the control. Controls call UseRightToLeftScrollBar when implementing the BiDiMode property. UseRightToLeftScrollBar returns true when the vertical scroll bar appears on the left side of the control, and false when it appears on the right side. UseRightToLeftScrollBar returns true if the application is running on a system with a Middle Eastern locale and the BiDiMode property is bdRightToLeft or bdRightToLeftNoAlign.

Visible#

Specifies whether the component appears onscreen. Use the Visible property to control the visibility of the control at run time. If Visible is True, the control appears. If Visible is False, the control is not visible. Calling the Show method sets the control’s Visible property to True. Calling the Hide method sets it to False. For TCustomForm descendants, the Show and ShowModal methods set Visible to True and bring the form to the front of all open windows. For TTabSheet descendants, Visible does not control the visibility of the control at run time. For more information, see the description of the TabVisible property.

Width#

Specifies the horizontal size of the control or form in pixels. Use the Width property to read or change the width of the control.

Note: For tab sheet controls, changing this property at run time has no effect.

WindowProc#

<Delphi property WindowProc of type TControl at 211418EC1C0>