This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.6
LISTBOX GET CELL POSITION
|
LISTBOX GET CELL POSITION ( {* ;} object {; X ; Y }; column ; row {; colVar} ) | ||||||||
Parameter | Type | Description | ||||||
* | Operator |
![]() |
If specified, object is an object name (string) If omitted, object is a variable | |||||
object | Form object |
![]() |
Object name (if * is specified) or Variable (if * is omitted) | |||||
X | Real |
![]() |
Horizontal coordinate of mouse | |||||
Y | Real |
![]() |
Vertical coordinate of mouse | |||||
column | Longint |
![]() |
Column number | |||||
row | Longint |
![]() |
Row number | |||||
colVar | Pointer |
![]() |
Pointer to column variable | |||||
The LISTBOX GET CELL POSITION command returns the numbers of the column and the row that correspond to the location in the listbox (designated by * and object) of the last mouse click, last selection made via the keyboard, or the horizontal and vertical coordinates of the mouse.
If you pass the optional * parameter, you indicate that the object parameter is an object name (a string). If you omit this parameter, you indicate that the object parameter is a variable.
If the X and Y parameters are passed, this command returns the column and row numbers corresponding to the mouse coordinates, otherwise this command returns the column and row numbers of a click or a selection action. The command will return valid values even when data entry is not allowed in the list box.
Notes:
The optional colVar parameter returns a pointer to the variable (i.e. array) associated with the column.
When the X and Y parameters are not used, this command can only be called in the framework of a list box that generates one of the following form events:
If the command is called outside of this context, LISTBOX GET CELL POSITION returns 0 in both column and row.
This command takes into account any selection or deselection actions whether by mouse click, via keyboard keys, or using the EDIT ITEM command (which can generate the On Getting Focus event). If the selection is modified using the arrow keys of the keyboard, column returns 0. In this case, if it is passed, the colVar parameter returns Is nil pointer.
Product: 4D
Theme: List Box
Number:
971
Modified: 4D v11 SQL Release 2
Renamed: 4D v12 (GET LISTBOX CELL POSITION)
Modified: 4D v16 R5
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)