RAD Studio VCL Reference
ContentsIndex
TCustomGrid Members Protected Methods
Protected Methods
 
Name 
Description 
 
Called when an application uses a component interface. 
 
Called when an application releases a component interface. 
 
Responds when the action associated with the control changes. 
 
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. 
 
Adds or deletes rows or columns from the grid. 
 
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 an object to a destination object. 
 
Overrides the inherited AssignTo function to enable assignments to TAction objects. 
 
Copies the properties of the windowed control to another object. 
 
Begin Automatic Drag. 
 
Starts the dragging of a column in the grid. 
 
Starts the dragging of a row in the grid. 
 
Returns the screen coordinates of a specified set of cells. 
 
Gives the coordinates of the cursor, with respect to the origin of the control. 
 
Calculates the pixel locations of the grid boundaries. 
 
Calculates the pixel locations of the fixed cells. 
 
Determines the appearance of the mouse cursor during resizing. 
 
Indicates whether the control can resize itself automatically to accommodate its contents. 
 
Indicates how the control can be resized. 
 
Indicates whether the Key parameter can be entered into the current cell. 
 
Indicates whether the current cell in the grid can be edited. 
 
Indicates whether the inplace edit control can be created to allow editing. 
 
Indicates whether the grid should respond to a given key combination. 
 
OnCanResize event dispatcher. 
 
Indicates how the control can respond to a resize attempt. 
 
Returns the screen coordinates of a cell in the grid. 
 
Sends a CM_CHANGED message to the control. 
 
Prepares the grid's canvas for painting to reflect a right-to-left or left-to-right orientation. 
 
Sets the private, internal storage for the Name property to the string passed in NewName. 
 
Rescaling event dispatcher. 
 
Resize and reposition children and self. 
 
CheckColumnDrag validates whether the column currently selected for dragging can be dropped at the current location. 
 
CheckRowDrag validates whether the row currently selected for dragging can be dropped at the current location. 
 
Respond to user click. 
 
Provides the interface for a method that responds when the position of a column changes. 
 
Responds when the column widths change. 
 
Notify control of resize with constraints. 
 
Generates an OnConstrainedResize event. 
 
ControlsAligned automatically executes after a call to AlignControls
 
Creates the dock manager for the control. 
 
Creates the inplace editor control. 
 
Creates underlying screen object. 
 
Initializes the window-creation parameter record. 
 
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. 
 
OnDblClick event dispatcher. 
 
Handles the painting and erasing of a dock image. 
 
Adds the ColWidths and RowHeights properties to the values saved with the grid. 
 
Deletes a specified column from the grid. 
 
Deletes a specified from the grid. 
 
Processes the given message and returns some Boolean information based on the message's content. 
 
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. 
 
Handles dragging of the control over an invalid docking target. 
 
OnContextPopup event dispatcher. 
 
Docking event dispatcher. 
 
Generates an OnDockOver event. 
 
OnEndDock event dispatcher. 
 
OnEndDrag event dispatcher. 
 
Respond to receiving input focus. 
 
Hides the inplace editor when selection moves to another control in a form. 
 
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. 
 
Processes mouse wheel motion. 
 
Performs tasks when the mouse wheel is rotated downward. 
 
Performs tasks when the mouse wheel is rotated upward. 
 
Responds when a control is undocked from the windowed control. 
 
OnStartDock event dispatcher. 
 
OnStartDrag event dispatcher. 
 
Undocks a control that is currently docked to the windowed control. 
 
Provides the interface for a method that responds to the cancellation of a drag. 
 
OnDragOver event dispatcher. 
 
Provides the prototype for a method that draws the contents of a cell in the grid. 
 
Draws the dock image for the control. 
 
Ends the dragging of a column in the grid. 
 
Ends the dragging of a row in the grid. 
 
Erases the dock image for the control. 
 
Returns the control's next child in the tab order after the specified control. 
 
Sorts the child controls by their tab order. 
 
Changes the current cell to a specified cell. 
 
Returns the value of the Action property. 
 
Returns the appropriate action link class that is associated with the control class. 
 
Returns the associated action link class. 
 
Returns the owner of a child component being read from a stream. 
 
Returns the parent, or if there is no parent, returns the owner of a child component being read from a stream. 
 
Enumerates all child components. 
 
Returns the screen coordinates of the top-left corner of the control's client area. 
 
Returns the value of the ClientOrigin property. 
 
Returns a rectangle defining the client area of the control. 
 
Returns the value of the ClientRect property. 
 
Returns the smallest rectangle in which all the control's children fit. 
 
Returns a device context for the control. 
 
Provides access to 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 DragMode property. 
 
Provides the interface for a method that limits the number of characters the user can type into cells. 
 
Provides the interface for a method that returns an input mask for the specified cell. 
 
Indicates whether a specified cell has an ellipsis button or drop-down arrow. 
 
Returns the value of the indicated cell formatted for editing. 
 
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 value of the GridHeight property. 
 
Returns the value of the GridWidth property. 
 
Maps a single member and an optional set of argument names to a corresponding set of integer dispatch identifiers (dispIDs). 
 
Returns the owner of a component. 
 
Returns the owner of an object. 
 
Returns the handle to a palette for use by the control. 
 
Returns the window handle for the window of the control's parent. 
 
Returns the pop-up menu associated with the control. 
 
Generates an OnGetSiteInfo event 
 
Returns the window handle of the first window not associated with a VCL control that contains the windowed control. 
 
Retrieves the type information for an object. 
 
Returns the number of type information interfaces that an object provides (either 0 or 1). 
 
Hides the inplace editor. 
 
Hides the inplace editor when it is not in use. 
 
Invalidates the region occupied by a cell so that it will be repainted with the next Windows paint message. 
 
Invalidates the region occupied by a column so that it will be repainted with the next Windows paint message. 
 
Invalidates the first dock site that appears in the list of child controls. 
 
Causes the inplace editor to repaint itself, moving to a new location if necessary. 
 
Tells Windows to repaint the grid after other important Windows messages are handled. 
 
Invalidates the region occupied by a row so that it will be repainted with the next Windows paint message. 
 
Provides access to Automation properties and methods when the component wraps an Automation object. 
 
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. 
 
Provides special processing when the user presses a key. 
 
Provides special processing when the user presses a key. 
 
Respond to released key. 
 
Initializes the component after the form file has been read into memory. 
 
Initializes the control after it is loaded from a stream. 
 
Receives Windows messages for the control. 
 
Triggers a TMouseActivateEvent event. 
 
Provides special processing when the user presses a mouse button. 
 
Provides special processing when the user moves the mouse. 
 
Provides special processing when the user releases the mouse button. 
 
Selects the cell indicated by the ACol and ARow parameters. 
 
Moves a column to a new position. 
 
Moves a row to a new position. 
 
Forwards notification messages to all owned components. 
 
Responds to notifications that components are being created or destroyed. 
 
Responds to notifications that components are being created or destroyed. 
 
Sends a message to all the child controls. 
 
Draws the image of the grid control on the screen. 
 
Paints each of the child controls in a windowed control using the specified device context. 
 
Responds to WM_PAINT messages. 
 
Renders the image of the control on a specified device context. 
 
Renders the image of a windowed control. 
 
Responds to changes in the system's palette by realizing the control's palette. 
 
Responds to changes in the system's palette by realizing the control's palette and the palette for each child control. 
 
Responds when the component is created from the component palette. 
 
Positions the docking rectangle according to the current drag-and-dock state. 
 
Returns a reference to a specified interface if the object supports that interface. 
 
Reads the state of the component. 
 
Prepares the control for having its properties assigned values read from a stream. 
 
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. 
 
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. 
 
Respond to control resize. 
 
Responds when the row heights change. 
 
Provides the interface for a method that responds when the position of a row changes. 
 
Scales the values of the Constraints property to the given ratio. 
 
Rescale child controls only. 
 
Scales the values of the Margins property to the given ratio. 
 
Scales the control padding to the given ratio. 
 
Scrolls the visual image of the cells in the grid. 
 
Determines whether a particular cell in the grid can be selected. 
 
Locates first selectable child control. 
 
Moves the input focus from the current child control to the next one in the tab order. 
 
Cancels the modal state of the control. 
 
Sends a Windows message to the control's host dock site. 
 
Clears or sets csAncestor state in the component's ComponentState property. 
 
Sets the value of the AutoSize property. 
 
Sets the control's bi-directional mode. 
 
Sets the visual ordering of a child control. 
 
Changes the order in which the child component appears in the list of child components returned by the GetChildren method. 
 
Sets the value of the CustomHint property. 
 
Ensures that components inserted at design time have their design-mode flag set. 
 
Ensures that components inserted at design time have their design-mode flag set. 
 
Sets the drag mode for the control. 
 
Provides the interface for a method that updates the text associated with a cell. 
 
Sets the value of the Enabled property. 
 
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 csInline bit of the component's ComponentState property 
 
Sets the value of the Name property. 
 
Sets the name of the control. 
 
Sets the parent of the control. 
 
Sets the parent of the control. 
 
Sets the ParentBackground property. 
 
Specifies whether the control uses its parent's BiDiMode
 
Sets the parent component. 
 
Sets the ParentBackground property. 
 
Repositions the control in its parent's control list, thereby changing position onscreen. 
 
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. 
 
Displays the inplace editor when the grid enters edit mode. 
 
Displays the inplace editor, with its text set to the specified character. 
 
Responds to changes in the size of the grid. 
 
Indicates whether the indicated coordinates are on one of the resize hot zones of the graph. 
 
Extends a move, resize, or selection out of the scrollable region when the user drags the mouse in a direction where the grid is scrolled. 
 
Updates the position of the inplace editor when the grid scrolls. 
 
Updates the bounds of the control. 
 
Changes the Top, Left, Width, and Height properties of the control, but doesn't update its screen image and bypasses all resize events. 
 
Updates the original size of the parent control. 
 
Clears the csUpdating state in the component's ComponentState property when the component finishes updating. 
 
Notifies the designer when rows and columns of the grid are moved or resized. 
 
Attempts to update the values of the explicit bounds of the control to those of its current bounds. 
 
Toggles the csRecreating flag in the ControlState property. 
 
Provides the interface for a method that adds type library and version information to the Registry on components that implement COM interfaces. 
 
Updates form User Interface State as needed 
 
Sets the csUpdating state in the component's ComponentState property. 
 
Determines whether an object can be inserted into a container. 
 
Provides the interface for a method that validates an child component before it is inserted. 
 
Ensures that renaming an owned component does not create name conflict. 
 
Provides the interface for a method that responds to changes in the control's visibility. 
 
Provides specific message responses for the control. 
 
Provides specific message responses for the control. 
 
Writes the state of the component. 
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.