This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20.6
List Box Commands Summary

List Box Commands Summary  


 

 

The following commands can be used with list boxes, or parts of list boxes such as headers, footers, rows, or columns.

CommandList Box TypeSupported Parts
LISTBOX COLLAPSEHierarchicalList box, headers, footers, rows, columns
LISTBOX DELETE COLUMNAllColumns
LISTBOX DELETE ROWSArrayList box, headers, footers, rows, columns
LISTBOX DUPLICATE COLUMNArray, Selection, CollectionColumns
LISTBOX EXPANDHierachialList box, headers, footers, rows, columns
LISTBOX Get arrayArrayList box, headers, footers, rows, columns
LISTBOX GET ARRAYSAllList box, headers, footers, rows, columns
LISTBOX Get auto row heightArrayList box, headers, footers, rows, columns
LISTBOX GET CELL COORDINATESAllList box, headers, footers, rows, columns
LISTBOX GET CELL POSITIONAllList box, headers, footers, rows, columns
LISTBOX Get column formulaSelection, CollectionColumns
LISTBOX Get column widthAllColumns
LISTBOX Get footer calculationArray, SelectionFooters
LISTBOX Get footers heightAllFooters
LISTBOX GET GRIDAllList box, headers, footers, rows, columns
LISTBOX GET GRID COLORSAllList box, headers, footers, rows, columns
LISTBOX Get headers heightAllHeaders
LISTBOX GET HIERARCHYArrayList box, headers, footers, rows, columns
LISTBOX Get locked columnsAllList box
LISTBOX Get number of columnsAllList box
LISTBOX GET OBJECTSAllList box
LISTBOX GET PRINT INFORMATIONAllList box, headers, footers, rows, columns
LISTBOX Get propertyAllList box, columns
LISTBOX Get row color as numberArrayRows
LISTBOX Get row font styleArrayRows
LISTBOX Get row heightArrayRows
LISTBOX Get rows heightAllList box
LISTBOX Get static columnsAllList box
LISTBOX GET TABLE SOURCEAllList box
LISTBOX INSERT COLUMNAllList box
LISTBOX INSERT COLUMN FORMULAAllList box
LISTBOX INSERT ROWSArrayList box
LISTBOX MOVE COLUMNAllColumns
LISTBOX MOVED COLUMN NUMBERAllColumns
LISTBOX MOVED ROW NUMBERArrayRows
LISTBOX SELECT BREAKHierarchicalList box
LISTBOX SELECT ROWAllRows
LISTBOX SET ARRAYArrayList box, columns
LISTBOX SET AUTO ROW HEIGHTArrayRows
LISTBOX SET COLUMN FORMULASelection, CollectionColumns
LISTBOX SET COLUMN WIDTHAllColumns
LISTBOX SET FOOTER CALCULATIONArray, SelectionFooters
LISTBOX SET FOOTERS HEIGHTAllFooters
LISTBOX SET GRIDAllList box
LISTBOX SET GRID COLORAllList box
LISTBOX SET HEADERS HEIGHTAllHeaders
LISTBOX SET HIERARCHYArrayList box
LISTBOX SET LOCKED COLUMNSAllList box
LISTBOX SET PROPERTYAllList box, columns
LISTBOX SET ROW COLORArrayRows
LISTBOX SET ROW FONT STYLEArrayRows
LISTBOX SET ROW HEIGHTArrayRows
LISTBOX SET ROWS HEIGHTAllList box
LISTBOX SET STATIC COLUMNSAllList box
LISTBOX SET TABLE SOURCESelectionList box
LISTBOX SORT COLUMNSAllColumns

CommandList Box TypeSupported PartsComments
EDIT ITEMAllcolumnsallows you to pass a cell of a list box object into edit mode
Get edited textAllList box, headers, footers, rows, columns 
REDRAWArray, SelectionList boxwhen applied to a selection list box, triggers an update of the data displayed in the list box. Not supported with list box of the entity selection type.
Displayed line numberAllList box, headers, footers, rows, columnsfunctions in the context of the On Display Detail form event for a list box object
Drop positionAllList box, headers, footers, rows, columns 
Count in arrayAllList box, headers, footers, rows, columns 
Print objectAllList box, headers, footers, rows, columns 

CommandList Box TypeSupported Parts
OBJECT DUPLICATE All List box, headers, footers, rows, columns
OBJECT GET BEST SIZEAllColumns
OBJECT Get border styleAllList box, headers, footers, rows, columns
OBJECT GET COORDINATESAllList box, headers, footers, rows, columns
OBJECT Get data sourceArrayList box
OBJECT GET DRAG AND DROP OPTIONSAllList box, headers, footers, rows, columns
OBJECT Get enterableAllColumns
OBJECT Get filterAllColumns
OBJECT Get focus rectangle invisibleAllList box, headers, footers, rows, columns
OBJECT Get fontAllList box, headers, footers, rows, columns
OBJECT Get font sizeAllList box, headers, footers, rows, columns
OBJECT Get font styleAllList box, headers, footers, rows, columns
OBJECT Get formatAllHeaders
OBJECT Get help tipAllHeaders, footers
OBJECT Get horizontal alignmentAllList box, headers, footers, columns
OBJECT Get list referenceAllColumns
OBJECT Get nameAllList box, headers, footers, rows, columns
OBJECT Get pointer(1)AllList box, headers, footers, rows, columns
OBJECT GET RESIZING OPTIONSAllList box, headers, footers, rows, columns
OBJECT GET RGB COLORSAllList box, headers, footers, rows, columns
OBJECT GET SCROLL POSITIONAllList box
OBJECT GET SCROLLBARAllList box
OBJECT Get typeAllList box, headers, footers, columns
OBJECT Get vertical alignmentAllList box, headers, footers, columns
OBJECT MOVEAllList box, headers, footers, rows, columns
_o_OBJECT SET COLORAllList box, headers, footers, rows, columns
OBJECT SET COORDINATESAllList box
OBJECT SET DATA SOURCEAllList box
OBJECT SET ENTERABLEAllColumns
OBJECT SET EVENTSAllList box
OBJECT SET FOCUS RECTANGLE INVISIBLEAllList box, headers, footers, rows, columns
OBJECT SET FONTAllList box, headers, footers, rows, columns
OBJECT SET FONT SIZEAllList box, headers, footers, rows, columns
OBJECT SET FONT STYLEAllList box, headers, footers, rows, columns
OBJECT SET FORMATAllList box, headers, footers, rows, columns
OBJECT SET HELP TIPAllHeaders, footers
OBJECT SET HORIZONTAL ALIGNMENTAllList box, headers, footers, columns
OBJECT SET RESIZING OPTIONSAllList box, headers, footers, rows, columns
OBJECT SET RGB COLORSAllList box, headers, footers, rows, columns
OBJECT SET SCROLL POSITIONAllList box
OBJECT SET SCROLLBAR(2)AllList box
OBJECT SET TITLEAllHeaders
OBJECT SET VERTICAL ALIGNMENTAllList box, headers, footers, columns
OBJECT SET VISIBLE(3)AllList box, headers, footers

(1) See paragraph below.
(2) Scrolls the list box rows so that the first selected row or a specified row is displayed
(3) When OBJECT SET VISIBLE is used with a header or footer, it is applied on all List box object headers or footers, regardless of the individual element set by the command. For example, the OBJECT SET VISIBLE(*;"header3";False) instruction will hide all headers in the List box object to which header3 belongs and not simply this header. Note that in order for you to be able to manage the visibility of these objects using the OBJECT SET VISIBLE command, they must have been displayed in the list box properties

The OBJECT Get pointer function used with the Object with focus or Object current constant (formerly the Focus object and Self functions) can be used in the object method of a list box or a list box column. They return a pointer to the list box, the list box column(1) or the header variable depending on the type of form event. The following table details this functioning:

EventObject with focusObject current
On Clickedlist boxcolumn
On Double Clickedlist boxcolumn
On Before Keystrokecolumncolumn
On After Keystrokecolumncolumn
On After Editcolumncolumn
On Getting Focuscolumn or list box (*)column or list box (*)
On Losing Focuscolumn or list box (*)column or list box (*)
On Droplist box sourcelist box (*)
On Drag Overlist box sourcelist box (*)
On Begin Drag Overlist boxlist box (*)
On Mouse Enterlist box (**)list box (**)
On Mouse Movelist box (**)list box (**)
On Mouse Leavelist box (**)list box (**)
On Data Changecolumncolumn
On Selection Changelist box (**)list box (**)
On Before Data Entrycolumncolumn
On Column Movedlist boxcolumn
On Row Movedlist boxlist box
On Column Resizelist boxcolumn
On Open DetailNillist box (**)
On Close DetailNillist box (**)
On Header Clicklist boxheader
On Footer Clicklist boxfooter
On After Sortlist boxheader

(*) When the focus is modified within a list box, a pointer to the column is returned. When the focus is modified at the overall form level, a pointer to the list box is returned. In the context of a column object method, a pointer to the column is returned.
(**) Not executed in the context of a column object method.

(1) When a pointer to a column is returned, the object pointed to depends on the type of list box. With an array type list box, the OBJECT Get pointer function (“User Interface” theme) returns a pointer to the column of the list box with the focus (i.e. to an array). The 4D pointer mechanism allows you to see the item number of the modified array. For example, supposing a user modified the 5th line of the column col2:

 $Column:=OBJECT Get pointer(Object with focus)
  ` $Column contains a pointer to col2
 $Row:=$Column-> `$Row equals 5

For a selection type list box, the OBJECT Get pointer function returns:

  • For a column associated with a field, a pointer to the associated field,
  • For a column associated with a variable, a pointer to the variable,
  • For a column associated with an expression, the Is nil pointer pointer.

 
PROPERTIES 

Product: 4D
Theme: List Box

 
PAGE CONTENTS 
 
HISTORY 

 
ARTICLE USAGE

4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)