4D v16.3

List Box

Home

 
4D v16.3
List Box

List Box 

 

Constant  Type Value Comment
lk add to selection  Longint 1 The row selected is added to the existing selection. If the row specified already belongs to the existing selection, the command does nothing.
lk all  Longint 0 The command affects all sub-levels (default value, used when parameter is omitted).
lk background color  Longint 1  
lk background color array  Longint 1  
lk break row  Longint 2 The command affects the sub-level to which the "cell" designated by the row and column parameters belongs. Note that these parameters represent the row and column numbers in the list box in standard mode and not in its hierarchical representation. If the row and column parameters are omitted, the command does nothing.
lk control array  Longint 3  
lk display footer  Longint 8 Display Footers property
Applies to: List box
Possible values:
  • lk no (0): hidden
  • lk yes (1): shown
lk display header  Longint 0 Display Headers property
Applies to: List box
Possible values:
  • lk no (0): hidden
  • lk yes (1): shown
lk display hor scrollbar  Longint 2 0=hidden, 1=shown
lk display ver scrollbar  Longint 4 0=hidden, 1=shown
lk font color  Longint 0  
lk font color array  Longint 0  
lk footer height  Longint 9 Height in pixels
lk header height  Longint 1 Height in pixels
lk hor scrollbar height  Longint 3 Height in pixels
lk hor scrollbar position  Longint 6 Position of the cursor in pixels
lk inherited  Longint -255  
lk last printed row number  Longint 0 Returns in info the number of the last row printed. Lets you find out the number of the next row to be printed.
The number returned may be greater than the number of rows actually printed if the list box contains invisible rows or if the OBJECT SET SCROLL POSITION command has been called. For example, if rows 1, 18 and 20 have been printed, info is 20. 
lk level  Longint 3 The command affects all the break rows corresponding to the level column. This parameter designates a column number in the list box in standard mode and not in its hierarchical representation. If the level parameter is omitted, the command does nothing.
lk lines  Longint 1 Height is expressed as a number of lines. 4D calculates the height of a line according to the font.
lk pixels  Longint 0 Height is expressed as a number of pixels (default).
lk printed height  Longint 3 Returns in info the height in pixels of the object actually printed (including headers, lines, etc.). Remember that if the number of rows to print is less than the "capacity" of the list box, its height is automatically reduced. 
lk printed rows  Longint 1 Returns in info the number of rows actually printed during the last call to the Print object command. This number includes any break rows added in the case of a hierarchical list box. For example, info is 10 if the list box contains 20 rows and the odd-numbered rows were hidden.
lk printing is over  Longint 2 Returns in info a Boolean indicating whether the last (visible) row of the list box has actually been printed. True = row has been printed; Otherwise, False.
lk remove from selection  Longint 2 The row selected is removed from the existing selection. If the row specified does not belong to the existing selection, the command does nothing.
lk replace selection  Longint 0 The row selected becomes the new selection and replaces the existing selection. The command has the same effect as a user click on a row (however, the On Clicked event is not generated). This is the default action (if the action parameter is omitted).
lk row height array  Longint 4 (4D View Pro license required)
lk row is disabled  Longint 2 The corresponding row is disabled. The text and controls such as check boxes are dimmed or grayed out. Enterable text input areas are no longer enterable. Default value: Enabled
lk row is hidden  Longint 1 The corresponding row is hidden. Hiding rows only affects the display of the list box. The hidden rows are still present in the arrays and can be managed by programming. The language commands, more particularly LISTBOX Get number of rows or LISTBOX GET CELL POSITION, do not take the displayed/hidden status of rows into account. For example, in a list box with 10 rows where the first 9 rows are hidden, LISTBOX Get number of rows returns 10. From the user’s point of view, the presence of hidden rows in a list box is not visibly discernible. Only visible rows can be selected (for example using the Select All command). Default value: Visible
lk row is not selectable  Longint 4 The corresponding row is not selectable (highlighting is not possible). Enterable text input areas are no longer enterable unless the "Single-Click Edit" option is enabled. Controls such as check boxes and lists are still functional however. This setting is ignored if the list box selection mode is "None". Default value: Selectable
lk selection  Longint 1 The command affects selected sub-levels.
lk style array  Longint 2  
lk ver scrollbar position  Longint 7 Position of the cursor in pixels
lk ver scrollbar width  Longint 5 Width in pixels


See also 

LISTBOX COLLAPSE
LISTBOX EXPAND
LISTBOX Get array
LISTBOX Get footers height
LISTBOX Get headers height
LISTBOX Get information
LISTBOX GET PRINT INFORMATION
LISTBOX Get row color
LISTBOX Get rows height
LISTBOX SELECT BREAK
LISTBOX SELECT ROW
LISTBOX SET ARRAY
LISTBOX SET FOOTERS HEIGHT
LISTBOX SET HEADERS HEIGHT
LISTBOX SET ROW COLOR
LISTBOX SET ROWS HEIGHT
Managing List Box Objects

 
PROPERTIES 

Product: 4D
Theme: List of constant themes

 
HISTORY 

New
Modified: 4D v15 R4
Renamed: 4D v16


 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)