diff --git a/docs/xml/lcl/stdctrls.xml b/docs/xml/lcl/stdctrls.xml index 2ca151f3a8..eb9764dd2e 100644 --- a/docs/xml/lcl/stdctrls.xml +++ b/docs/xml/lcl/stdctrls.xml @@ -6189,23 +6189,32 @@ display the items in the control. -The number of selected items in the list. + +The number of selected items in the list box control. +

SelCount is a read-only Integer property which contains -the number of Items selected in the list box control. The return -value is the result returned by the GetSelCount method in the -widgetset class, or 0 (zero) when a handle has not been allocated for the -control. SelCount is significant when the MultiSelect property is -enabled. +the number of Items selected in the list box control. The property +value is the result returned by the GetSelCount method +in the widgetset class when its Handle has been allocated.

-Use Selected to read or write the selected state for a single -value defined in the Items for the control. +If the widget Handle is unassigned, the property value is determined using +either the value in ItemIndex or the list items in the local cache. If +MultiSelect has not been enabled, the property value is either 0 or 1; 0 when +ItemIndex = -1 and 1 when ItemIndex > -1. If MultiSelect is +True, the local item cache is searched to get the number of items +selected in the control. The value is 0 if the local cache is invalid or none +of the cached items are in the selected state.

-Use SelectRange to set the selected state for Items in a specified -range of positions. +Use Selected to get or set the selected state for an item on the +control. +

+

+Use SelectRange to set or reset the selected state for Items in a +specified range of positions.

Use SelectAll to select all Items in the control. @@ -6216,10 +6225,12 @@ Use ClearSelection to remove all item selections in the control. + + + -