RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControl Methods

The methods of the TControl class are listed here.

 
Name 
Description 
 
Responds when the action associated with the control changes. 
 
Sets the size of the control as determined by the AutoSize property. 
 
Overrides the inherited AssignTo function to enable assignments to TAction objects. 
 
Begin Automatic Drag. 
 
This is CalcCursorPos, a member of class TControl. 
 
Indicates whether the control can resize itself automatically to accommodate its contents. 
 
OnCanResize event dispatcher. 
 
Sends a CM_CHANGED message to the control. 
 
Rescaling event dispatcher. 
 
Respond to user click. 
 
Notify control of resize with constraints. 
 
OnDblClick event dispatcher. 
 
Handles the painting and erasing of a dock image. 
 
Provides methods to read and write the IsControl property to a stream such as a form file. 
 
This is DesignWndProc, a member of class TControl. 
 
Handles dragging of the control over an invalid docking target. 
 
OnContextPopup event dispatcher. 
 
Docking event dispatcher. 
 
OnEndDock event dispatcher. 
 
OnEndDrag event dispatcher. 
 
Processes mouse wheel motion. 
 
OnMouseWheelDown event dispatcher. 
 
OnMouseWheelUp event dispatcher. 
 
OnStartDock event dispatcher. 
 
OnStartDrag event dispatcher. 
 
Provides the interface for a method that responds to the cancellation of a drag. 
 
OnDragOver event dispatcher. 
 
Draws the dock image for the control. 
 
Erases the dock image for the control. 
 
This is GetAction, a member of class TControl. 
 
Returns the appropriate action link class that is associated with the control class. 
 
Returns the screen coordinates of the top-left corner of the control's client area. 
 
Returns a rectangle defining the client area of the control. 
 
Returns a device context for the control. 
 
Returns the edge on which another control should be docked when it is dragged over the control. 
 
Returns the control's image list containing the image to be displayed while dragging. 
 
Returns the value of the Enabled property. 
 
Returns the value of the Floating property. 
 
Returns the class used for the control when it is floating. 
 
Returns the handle to a palette for use by the control. 
 
Returns the pop-up menu associated with the control. 
 
Initializes the control after it is loaded from a stream. 
 
This is MouseActivate, a member of class TControl. 
 
OnMouseDown event dispatcher. 
 
Respond to mouse moving over control area.. 
 
OnMouseUp event dispatcher. 
 
Responds to notifications that components are being created or destroyed. 
 
Responds to changes in the system's palette by realizing the control's palette. 
 
Positions the docking rectangle according to the current drag-and-dock state. 
 
Prepares the control for having its properties assigned values read from a stream. 
 
Instructs the parent of a control to reposition the control, enforcing its Align property. 
 
Respond to control resize. 
 
This is ScaleConstraints, a member of class TControl. 
 
Cancels the modal state of the control. 
 
Sends a Windows message to the control's host dock site. 
 
This is SetAutoSize, a member of class TControl. 
 
Sets the control's bi-directional mode. 
 
Sets the drag mode for the control. 
 
Sets the value of the Enabled property. 
 
Sets the name of the control. 
 
Sets the parent of the control. 
 
Specifies whether the control uses its parent's BiDiMode
 
Sets the parent for the control. 
 
Repositions the control in its parent's control list, thereby changing position onscreen. 
 
Changes the Top, Left, Width, and Height properties of the control, but doesn't update its screen image and bypasses all resize events. 
 
This is UpdateExplicitBounds, a member of class TControl. 
 
Provides the interface for a method that responds to changes in the control's visibility. 
 
Provides specific message responses for the control. 
 
Name 
Description 
 
Starts the dragging of a control. 
 
Puts the control in front of all other controls in its parent control. 
 
Translates client coordinates to parent coordinates. 
 
Translates a given point from client area coordinates to global screen coordinates. 
 
Provides message handling for all messages that do not have specific handlers. 
 
Dock 
Used internally to dock the control. 
 
OnDragDrop event dispatcher. 
 
Indicates whether a control is being dragged. 
 
Returns the text flags that reflect the current setting of the BiDiMode property. 
 
Returns the text flag to add that indicates whether the control's text should read from right to left. 
 
Stops a control from being dragged any further. 
 
Indicates how text is aligned within the control. 
 
Returns the parent of the control. 
 
Retrieves the control's text, copies it into a buffer, and returns the number of characters copied. 
 
Returns the length of the control's text. 
 
Indicates whether the control has a parent. 
 
Hide 
Makes the control invisible. 
 
Calls the action link's Update method if the control is associated with an action link. 
 
Completely repaint control. 
 
Indicates whether the control should be reversed right to left. 
 
Docks the control. 
 
Undocks the control. 
 
Dispatches messages received from a mouse wheel. 
 
Translate parent coordinates to client coordinates. 
 
Responds as if the control received a specified Windows message. 
 
Repaints the control on the screen. 
 
Forces the control to repaint its image on the screen. 
 
Docks the control in the place where another control is already docked. 
 
Converts the screen coordinates of a specified point on the screen to client coordinates. 
 
Puts a windowed control behind all other windowed controls, or puts a non-windowed control behind all other non-windowed controls. 
 
Sets the Left, Top, Width, and Height properties all at once. 
 
Makes a control visible at design time. 
 
Sets the text of the control. 
 
Show 
Makes a control visible. 
 
Processes any pending paint messages immediately. 
 
Specifies whether the control's alignment should be reversed right-to-left. 
 
Specifies whether the control is using a right-to-left reading order. 
 
Specifies whether the vertical scroll bar appears on the left side of the control. 
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!