From 88a989fa65196431094e69b02e986649b3e74c1e Mon Sep 17 00:00:00 2001 From: dsiders Date: Sat, 8 Apr 2023 05:33:49 +0100 Subject: [PATCH] Docs: LCL/comctrls. Adds missing short descriptions and updates content in various topics. --- docs/xml/lcl/comctrls.xml | 373 ++++++++++++++++++++++++++++---------- 1 file changed, 281 insertions(+), 92 deletions(-) diff --git a/docs/xml/lcl/comctrls.xml b/docs/xml/lcl/comctrls.xml index 030663cbae..becc231c73 100644 --- a/docs/xml/lcl/comctrls.xml +++ b/docs/xml/lcl/comctrls.xml @@ -5468,13 +5468,10 @@ in Client. - - - - - - + + + @@ -5515,19 +5512,29 @@ Called to check whether this control allows docking and where. - + +Object with the display rectangle and alignment for the hover notification. + - + +Horizontal coordinate for the dockable object. + - + +Vertical coordinate for the dockable object. + - + +Indicates whether the object is entering, moving, or leaving the dock site. + - + +Returns True if the object can be docked. + @@ -6039,18 +6046,26 @@ inherited Create then sets many local defaults. calls the inherited Create method then sets default values in the class instance.

-

Among the defaults set are:

-HotTrack, Multiline, MultiSelect, OwnerDraw, RaggedRight, ScrollOpposite - -all False; Tab height and width to zero +Among the defaults set are:

+
    +
  • +HotTrack, Multiline, MultiSelect, OwnerDraw, RaggedRight, ScrollOpposite (all set to False) +
  • +
  • +Tab height and width (Set to zero). +
  • +
TObject.Create - + +TTabControl instance where the string values are used. + @@ -6101,44 +6116,75 @@ Returns a set of THitTest result values for the specified location. -IndexOfTabAt - returns the Index value of the tab at the specified -location X, Y. - +Gets the ordinal position for the value of the tab at the specified +location X, Y. + + +

+IndexOfTabAt always returns 0 in TTabControlStrings. It is +overridden in descendent classes to return the position in the Notebook or +TabSheet for the tabbed control. +

+

+Used in the implementation of the IndexOfTabAt method in TTabControl. +

+
- + +Ordinal position in Items for the named tab at the specified coordinates. + - + +Horizontal coordinate for the tab to locate in Items. + - + +Vertical coordinate for the tab to locate in Items. + -RowCount - number of rows (for a multi-row string). - +Returns the number of rows needed (for a multi-row string). + + +

+RowCount always returns 1 in TTabControlStrings. +

+
- + +Number of row needed to represent tab names on the associated control. + -TabRec - returns the coordinates of the rectangle for the tab with -specified index. +Returns the coordinates of the rectangle for the tab with specified index. - + +

+TabRect always returns a zero-filled TRect instance in +TTabControlStrings. +

+
- + +TRect instance with the display area for the tab at the specified ordinal position. + - + +Ordinal position for the tab with the caption represented in the return value. + @@ -6149,19 +6195,27 @@ specified index. - + +Object (TCustomTabControl) instance for the change notification. + -ScrollTabs - scrolls the tabs by an amount specified by -Delta. +Scrolls the tabs by the amount specified in Delta. - + +

+ScrollTabs sets the visible when a scroll message occurs on the +associated tab control. +

+
- + +Indicates the direction and number of tabs for the scroll operation. + @@ -6210,11 +6264,15 @@ bounds of a Tab Control. - + +Returns True if an update is in progress. + -The TabControl to which these strings apply. + +The TabControl to which these strings apply. + @@ -7920,40 +7978,61 @@ TCustomDrawState determines how a item will be drawn. -TCustomDrawResultFlag - enumerated type, a series of flags to -signify the result of a drawing process. +Represents flags returned as custom drawing results. + + + + - + +Skips default drawing routines when a custom drawing process has failed. + - + +Included in the drawing result when a drawing target supports cdPostPaint. + - + +Included in the drawing result when an item drawing target supports cdPrePaint +or cdPreErase. + - + +Included in the drawing result when a subitem drawing target supports +cdPrePaint. + - - + + +Included in the drawing result when an item drawing target supports +cdPostErase. + - - + + +Not used in the current LCL implementation. + -TCustomDrawResult - set of TCustomDrawResultFlag. -. +Set type used to store TCustomDrawResultFlag enumeration values. + - + + + + -Indicates the sort mechanism used for items in tree view and list view +Indicates the sort mechanism used for the items in tree view and list view controls. @@ -8051,7 +8130,6 @@ being destroyed or created. List item has been marked as created by a notify message. - @@ -18562,43 +18640,85 @@ to bottom to represent the progress for the process. -TUDAlignButton - enumerated type contains constants for alignment -of an UpDown button. - - - +Contains values used to align the buttons on a TUpDown control. + +

+TUDAlignButton is an enumerated type with values that indicate the +alignment for the up/down buttons on a TUpDown control. The value indicates +where the buttons are positioned relative to the edit on the control. Values +from TUDAlignButton can be assigned to the AlignButton property in a TUpDown +control. +

+

+See TUDOrientation for the orientation of the arrows drawn on a TUpDown +control. +

+
+ + + + +
- + +The up/down button is aligned on the left-hand edge of a TUpDown control. + - + +The up/down button is aligned on the right-hand edge of a TUpDown control. + - + +The up/down button is aligned on the top edge of a TUpDown control. + - + +The up/down button is aligned on the bottom edge of a TUpDown control. + -TUDOrientation - enumerated type with constants for orientation of -UpDown button (Horizontal or Vertical). +Indicates the orientation for the arrows on a TUpDOwn control. - - + +

+TUDOrientation is an enumerated type with values that control the +orientation of the button arrows drawn on a TUpDown control. Values in +TUDOrientation can be assigned to the Orientation property in TUpDown. +

+

+See TUDAlignButton for the values used to align the arrow buttons on a TUpDown +control. +

+
+ + + + +
- + +Button arrows are drawn side-by-side with the arrows pointing to the left and +right. + - + +Button arrows are stacked vertically with the arrows pointing upward and +downward. + -Indicates whether a value is being increased, decreased, or not changed. +Indicates whether a value in a TUpDown control is being increased, decreased, +or not changed.

@@ -18635,58 +18755,125 @@ buttons used in a TCustomUpDown control. Represents the Previous (Down, Decrease Value) button. - -TUDClickEvent - generic event handling procedure for clicking on -an UpDown button. +Specifies an event handler signalled for a button click on a TUpDown control. - - + +

+TUDClickEvent is the type used to implement a handler routine in +the OnClick property in TCustomUpDown. +

+
+ + +
- + +Object (TCustomUpDown) for the click event. + - + +Indicates whether the up or down button is applied in the click event. + -TUDChangingEvent - generic event handling procedure for changes in -UpDown button. +Specifies an event handler signalled prior to changing the value in a TUpDown +control. - - + +

+TUDChangingEvent allows an application to control whether a pending +change to the value in TUpDown can be applied to the control. Set the +AllowChange argument to False in the handler routine to prevent the change +from being applied to the control. +

+

+TUDChangingEvent is the type used to implement the OnChanging property in +TUpDown. +

+

+Use TUDChangingEventEx and OnChangingEx for the event which includes the new +value for the control and the direction in which the value will be changed. +

+
+ + + + + + +
- + +Object (TCustomUpDown) for the event. + - + +Indicates whether the value change can be applied to the TUpdown control. +Return False to prevent the change to the control value. + -Specifies an event handler signalled with additional information when the -value for a TUpDown control is about to change. +Specifies an event handler signalled prior to changing the value in a TUpDown +control. - - + +

+TUDChangingEventEx allows an application to control whether a +pending change to the value in TUpDown can be applied to the control. It is +similar to TUDChangingEvent, but includes the new value for the control and +indicates the direction for the pending change. Set the AllowChange argument +to False in the handler routine to prevent the change from being applied to +the control. +

+

+TUDChangingEventEx is the type used to implement the OnChangingEx property in +TUpDown. +

+

+Use TUDChangingEvent and OnChanging for the event which provides a simple +notification of a pending value change in the control. +

+
+ + + + + + +
- + +Object (TCustomUpDown) for the event. + - + +Indicates whether the value change can be applied to the TUpdown control. +Return False to prevent the change to the control value. + - + +New value for the TUpdown control. + - + +Direction for the pending value change (up or down). + @@ -19449,10 +19636,14 @@ removal of the associate control, this is performed. - + +Component added or removed in the notification. + - + +Operation performed in the notification. + @@ -23295,7 +23486,6 @@ TCoolBand is the type used for the items in the TCoolBands collection. Gets the value for the Visible property. - @@ -23318,7 +23508,6 @@ TCoolBand is the type used for the items in the TCoolBands collection. Sets the value for the BorderStyle property. -