QGrid
![]() |
![]() ![]() |
QG_GetSelectionOptions(areaRef; selectionFlags; frameColor; frameWidth):errorCode | |||
![]() |
areaRef | Longint | QGrid area reference |
![]() |
selectionFlags | Longint | Selection method |
![]() |
frameColor | Longint | Color of selection frame |
![]() |
frameWidth | Longint | Width of selection frame |
![]() |
error | Longint | Error result |
Returns user selection options for a QGrid area.
Parameter areaRef is the QGrid area reference. If areaRef is not a valid QGrid area reference, qg_paramErr error is returned.
Parameter selectionFlags receives the user selection options. QGrid defines the following constants for selectionFlags:
qg_SelectionNotAllowed | 1 | No user selection is allowed |
qg_SelectOneCell | 2 | Only single cell selection is allowed (default) |
qg_SelectManyCells | 6 | Multiple cell selection is allowed |
Parameter frameColor receives the color used for highlighting (framing) the user-selected cells, expressed in 4D's RGB color notation (0x00RRGGBB - see SET RGB COLORS in 4D's documentation).
Parameter frameWidth receives the frame width in pixels.
Example
C_LONGINT($err;$option;$color;$width) $err:=QG_GetSelectionOptions (xGrid;$option;$color;$width) If ($err # qg_noErr) ` Handle the error End if |
Related commands
QG_SetSelectionOptions | Sets the user selection options for a QGrid area |