RAD Studio VCL Reference
ContentsIndex
TPaintBox 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. 
 
Sets the size of the control as determined by the AutoSize property. 
 
Copies the properties of an object to a destination object. 
 
Overrides the inherited AssignTo function to enable assignments to TAction objects. 
 
Begin Automatic Drag. 
 
Gives the coordinates of the cursor, with respect to the origin of the control. 
 
Indicates whether the control can resize itself automatically to accommodate its contents. 
 
OnCanResize event dispatcher. 
 
Sends a CM_CHANGED message to the control. 
 
Sets the private, internal storage for the Name property to the string passed in NewName. 
 
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. 
 
Designates methods for storing an object's unpublished data on a stream such as a form file. 
 
Provides an interface for a method that reads and writes otherwise unpublished data. 
 
Provides methods to read and write the IsControl property to a stream such as a form file. 
 
Processes the given message and returns some Boolean information based on the message's content. 
 
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. 
 
Returns the value of the Action property. 
 
Returns the appropriate action link class that is associated with the control 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 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 DragMode property. 
 
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. 
 
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 pop-up menu associated with the control. 
 
Retrieves the type information for an object. 
 
Returns the number of type information interfaces that an object provides (either 0 or 1). 
 
Provides access to Automation properties and methods when the component wraps an Automation object. 
 
Initializes the component after the form file has been read into memory. 
 
Initializes the control after it is loaded from a stream. 
 
Triggers a TMouseActivateEvent event. 
 
OnMouseDown event dispatcher. 
 
Respond to mouse moving over control area.. 
 
OnMouseUp event dispatcher. 
 
Forwards notification messages to all owned components. 
 
Responds to notifications that components are being created or destroyed. 
 
Generates an OnPaint event. 
 
Responds to changes in the system's palette by realizing the control's palette. 
 
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. 
 
Instructs the parent of a control to reposition the control, enforcing its Align property. 
 
Respond to control resize. 
 
Scales the values of the Constraints property to the given ratio. 
 
Scales the values of the Margins property to the given ratio. 
 
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. 
 
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. 
 
Sets the value of the Enabled property. 
 
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. 
 
Specifies whether the control uses its parent's BiDiMode
 
Sets the parent component. 
 
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. 
 
Clears the csUpdating state in the component's ComponentState property when the component finishes updating. 
 
Attempts to update the values of the explicit bounds of the control to those of its current bounds. 
 
Provides the interface for a method that adds type library and version information to the Registry on components that implement COM interfaces. 
 
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. 
 
Writes the state of the component. 
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.