RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWinControl Methods

The methods of the TWinControl class are listed here.

 
Name 
Description 
 
Updates the control to reflect changes in its associated action. 
 
Sets control's window style according to its bi-directional support. 
 
Provides the interface that adjusts the ClientRect property for idiosyncrasies of the window. 
 
Adjusts the control's size according to its contents and constraints. 
 
Aligns any controls for which the control is the parent within a specified area of the control. 
 
Aligns the given control with the specified alignment options. 
 
Copies the properties of the windowed control to another object. 
 
Indicates how the control can be resized. 
 
Indicates how the control can respond to a resize attempt. 
 
Resize and reposition children and self. 
 
Generates an OnConstrainedResize event. 
 
ControlsAligned automatically executes after a call to AlignControls
 
Creates the dock manager for the control. 
 
Creates underlying screen object. 
 
Initializes a window-creation parameter data structure. 
 
Creates a windowed control derived from an existing Windows window class. 
 
Creates a Windows control to represent the control. 
 
Creates the underlying window. 
 
Returns placement order of custom-aligned child control. 
 
Returns aligned position of custom-aligned child control. 
 
Provides methods to read and write the IsControl property to a stream such as a form file. 
 
Destroys the control's window without destroying the control. 
 
Destroys the window created in the CreateWindowHandle method. 
 
Destroys the control's window. 
 
Performs actions when a control is docked to the windowed control. 
 
Responds when a docking client is dragged over the windowed control. 
 
Invalidates the first dock site in the list of child controls. 
 
Generates an OnDockOver event. 
 
Respond to receiving input focus. 
 
Respond to losing input focus 
 
Flips the control's children. 
 
Performs some preprocessing before generating an OnKeyDown event. 
 
Performs some preprocessing before generating an OnKeyPress event. 
 
Performs some preprocessing before generating an OnKeyUp event. 
 
Responds when a control is undocked from the windowed control. 
 
Undocks a control that is currently docked to the windowed control. 
 
Returns the control's next child in the tab order after the specified control. 
 
Sorts the child controls by their tab order. 
 
Returns the associated action link class. 
 
Returns the value of the ClientOrigin property. 
 
Returns the value of the ClientRect property. 
 
Returns the smallest rectangle in which all the control's children fit. 
 
Provides access to a device context for the control. 
 
Returns the window handle for the window of the control's parent. 
 
Generates an OnGetSiteInfo event 
 
Returns the window handle of the first window not associated with a VCL control that contains the windowed control. 
 
Invalidates the first dock site that appears in the list of child controls. 
 
Indicates whether a specified mouse activation message is directed to the given child control. 
 
Indicates whether a specified mouse message is directed to one of the windowed control's child controls. 
 
Checks whether the control is docked inside another control or has at least two docked controls. 
 
Respond to key press events. 
 
Respond to keyboard input. 
 
Respond to released key. 
 
Receives Windows messages for the control. 
 
Responds to notifications that components are being created or destroyed. 
 
Sends a message to all the child controls. 
 
Paints each of the child controls in a windowed control using the specified device context. 
 
Responds to WM_PAINT messages. 
 
Renders the image of a windowed control. 
 
Responds to changes in the system's palette by realizing the control's palette and the palette for each child control. 
 
Prepares the control for having its properties assigned values from a stream. 
 
Recreate underlying Windows screen object. 
 
Reloads a docked control. 
 
Removes the ControlAtom and WindowAtom properties of the control. 
 
Instructs the parent of a control to reposition the control, enforcing its Align property. 
 
Restores the input method editor (IME) that was active when the application started. 
 
Directs the composition window of the input method editor (IME) to perform a specific action. 
 
Rescale child controls only. 
 
Scales the control padding to the given ratio. 
 
Locates first selectable child control. 
 
Moves the input focus from the current child control to the next one in the tab order. 
 
Changes the order in which the child component appears in the list of child components returned by the GetChildren method. 
 
Activates an input method editor (IME) using the values specified by the ImeMode and ImeName properties. 
 
Sets the position and font of the composition window. 
 
Sets the parent of the control. 
 
Sets the ParentBackground property. 
 
Sets the ParentBackground property. 
 
Moves the control to the top or bottom of the parent control's (or screen's) list of TWinControl controls. 
 
Ensures that a specified child control is visible. 
 
Updates the bounds of the control. 
 
Updates the original size of the parent control. 
 
Toggles the csRecreating flag in the ControlState property. 
 
Updates form User Interface State as needed 
 
Provides specific message responses for the control. 
 
Name 
Description 
 
Sends a message to each of the child controls. 
 
Indicates whether a control can receive focus. 
 
Indicates whether a specified control exists within the control. 
 
Returns the child control located at a specified position within the control. 
 
Creates and initializes a control as the child of a specified non-VCL window. 
 
Provides message handling for all messages that the control does not fully process itself. 
 
Disables the realignment of child controls. 
 
Generates an OnDockDrop event. 
 
Decrements the reference count incremented by the DisableAlign method, eventually realigning the child controls. 
 
Returns a child control given its name. 
 
Reverses the positions of child controls. 
 
Determines whether the control has input focus. 
 
Calls a specified method for each child of the control. 
 
Builds a list of controls in tab order. 
 
Reports whether a screen object handle exists for the control. 
 
Creates a screen object for the control if it doesn't already exist. 
 
Inserts a control into the Controls array property. 
 
Schedules a control repaint. 
 
This is the overview for the PaintTo method overload. 
 
Returns False, no matter the value of Msg
 
Forces the control to realign children. 
 
Removes a specified control from the Controls array. 
 
Repaints the entire control. 
 
Rescale control and its children. 
 
Scroll control contents. 
 
Sets the windowed control's boundary properties all at once. 
 
Makes a control visible at design time. 
 
Gives the input focus to the control. 
 
Forces the control to update. 
 
Respond to state change. 
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!