diff --git a/docs/xml/lcl/controls.xml b/docs/xml/lcl/controls.xml index 3ba0d61f9d..90ea435bca 100644 --- a/docs/xml/lcl/controls.xml +++ b/docs/xml/lcl/controls.xml @@ -1838,12 +1838,12 @@ Indicates if the Control has called but not completed its Paint method. ControlIsPainting is a Boolean function which indicates if the Control has called but not completed its Paint method. ControlIsPainting returns True when the Control has been -assigned (contains a non-Nil value) and its IsProcessingPaintMsg -method returns True. +assigned (contains a non-Nil value) and its +IsProcessingPaintMsg method returns True.
-ControlIsPainting is used in the implementation of the -CreateHandle method. +ControlIsPainting is used in the implementation of the CreateHandle +method.
+CaptureChanged is an abstract virtual method in +TDragManager, and must be implemented in a descendent class. In the +default drag manager implementation, the DragMode and DragKind properties for +child controls are checked to determine if one of them has the mouse capture. +If none of them are active, the Parent control calls DragStop. +
++CaptureChanged is called from the CaptureChanged method in TControl when +the LM_CaptureChanged message is received by the control and the drag manager +is active. +
+CanStartDragging must be implemented in a descendent class, like the @@ -4460,8 +4481,8 @@ InsertControl determines the placement of the just docked control, forcing a repaint of the container control if necessary.
An overloaded version passes the DragDockObject to the dockmanager, allowing
@@ -5522,16 +5543,23 @@ object.
FixDesignFontsPPI is a method used to adjust the font size when the
@@ -15270,6 +15341,12 @@ Screen coordinates converted to client coordinates in the method.
+Screen coordinates in the return value are determined by adding the values in
+APoint and the ClientOrigin for the control.
+
+ControlOrigin is a read-only TPoint property with the +screen-relative coordinates where the control is located. +
++The X and Y members in the property represent the Left and Top coordinates for +the control after they are converted to screen coordinates. The values are +derived by adding the TPoint values for the Left and Top coordinates to the +ClientOrigin property for the Parent control. The return value contains the +unmodified values in Left and Top when a Parent control has not been assigned. +
++ControlOrigin is used to implement the ScreenToControl and ControlToScreen +methods. +
+
TControlChildSizing is a TPersistent descendant which
provides properties and methods used to layout, align, and resize child
-controls relative to their parent. Properties are provide which define the
+controls relative to their parent. Properties are provided which define the
horizontal and vertical spacing between controls, the preferred direction
controls are aligned, and whether controls are scaled to fit in the parent
control.
@@ -17635,35 +17811,25 @@ in the properties.
+The value for the property is passed as an argument to the Create constructor.
+
+EnlargeHorizontal is a TChildControlResizeStyle property
+which indicates how child controls are expanded or aligned horizontally in the
+parent Control.
+
+The default value for the property is crsAnchorAligning, and indicates that
+Anchors and Align work like Delphi.
+
+For example: when the Anchors property of the control is [akLeft] it means
+fixed distance between left border of parent's client area. [akRight] means
+fixed distance between right border of the control and the right border of the
+parent's client area. When the parent is resized the child is moved to keep
+the distance. [akLeft,akRight] means fixed distance to left border and fixed
+distance to right border. When the parent is resized, the controls width is
+changed (resized) to keep the left and right distance.
+
+See for more information about the
+values for the property and their meanings.
+
+Layout is a TControlChildrenLayout property which
+indicates the layout behavior for adjacent controls in the parent Control.
+Layout is used when methods in TControl (and descendent classes) need to
+arrange their child controls into columns or rows.
+
+The default value for the property is cclNone, and indicates that a layout
+direction has not been specified. This causes the design-time positioning for
+the child controls to be used. Use cclLeftToRightThenTopToBottom or
+cclTopToBottomThenLeftToRight to layout child control in column / row order
+using the BiDiMode settings for the Control.
+
+Changing the value for the property causes the Change method to be called to
+realign child controls and signal the OnChange event handler (when assigned).
+
+Layout is used in TControl methods like WidthIsAnchored and HeightIsAnchored, and in the AlignControls method in TWinControl.
+
+Current is a read-only TControl property with the
+current value in the enumerator. It represents one of the child controls in
+the TWinControl instance passed as an argument to the Create constructor.
+
+Use MoveNext to move the enumerator to the next control in the order used for
+the enumerator.
+ Contains True when a parent control has not enabled its
-DoubleBuffered property. Contains True when the Parent control has not enabled its
+DoubleBuffered property.
+
No actions are performed in the method when Parent is unassigned (contains -Nil). +Nil).
+GetAdjustedLogicalClientRect is a method used to get the client +rectangle for the control, and adjust the values for any additional space +needed for the control. It calls the AdjustClientRectangle method to apply any +additional spacing required for borders, bevels, edges, indentation, etc. In +TWinControl, no additional space is required. Descendent classes may have +different requirements. +
++GetAdjustedLogicalClientRect is used to implement the CheckSidePosition method +in TAnchorSide. +
+-Changing the ClientRect here, to the most probable size, reduces unnecessary -resize messages. +DoSetBounds is an overridden method in TWinControl. It +keeps a copy of the current Width and Height prior to calling the inherited +method to apply the argument values to the Left, Top, Width and Height +properties. +
++It performs actions to adjust the CachedClientWidth and CachedClientHeight if the control flags do not indicate they are being loading or have already been +loaded for the control. Changing the ClientRect here, to the most probable size, reduces unnecessary resize messages.
Normally, the ClientWidth / ClientHeight are adjusted automatically by the @@ -18995,19 +19293,31 @@ resize messages.
-When SetReplacingControl has been called with a non-Nil Control -before, the dropped control only should replace that control. +When SetReplacingControl has been called with a non-Nil +Control before, the dropped control only should replace that control.
A tree docking manager organizes the docksite into layers of horizontal or
@@ -24903,30 +25241,20 @@ the host docksite is not involved.
+For example:
AControl.Align := AnchorAlign[alRight]; // contains [akRight, akTop, akBottom]
@@ -25118,7 +25439,7 @@ Not used in the current LCL version.
@@ -25126,7 +25447,9 @@ Disabled controls should be excluded, but are not due to an bug in FindControlAtPosition.
The result is very interface specific; use FindOwnerControl when Handle may -be a non-TWinControl handle +be a non-TWinControl handle.
The result is not reliable during resizing. +