Purpose
Mode in which the cells and rows of the browser can be selected.
Class
Type
Access / Assign
Data Type
Symbol
Description
The bBrowser supports different modes in which cells and rows can be selected:
Mode |
Description |
#Simple |
The cell or row selected in which the cursor is. |
#Multiple |
Several cells or rows can be selected. Additional keys must be pressed (see addional information below). |
#MultipleInColumn |
Several cells in a column can be selected. Additional keys must be pressed (see addional information below). |
#MultipleInRow |
Several cells in a row can be selected. Additional keys must be pressed (see addional information below). |
#Permanent |
Several cells or rows can be selected, without additional keys being pressed.
An existing selection is not removed automatically but must be cleared through a call to the method bBrowser:SelectionRemove(). |
After creating a bBrowser control the mode #Simple is active.
Keyboard support with the mode #Multiple:
The following combinations of keys can be used for selecting:
Key |
Description |
Arrow Key |
Moves the cursor in the appropriate direction, removes all available selections and selects the current cell. |
Shift + Arrow Key |
Moves the cursor in the appropriate direction and selects all cells between the last selected cell and the current cell. |
Ctrl + Arrow Key |
Moves the cursor in the appropriate direction without to select the current cell and to change the existing selection. |
Shift + Ctrl + Up ñ |
Moves the cursor at the first record and selects all cells between the last selected cell and the current cell. |
Shift + Ctrl + Down ò |
Moves the cursor at the last record and selects all cells between the last selected cell and the current cell. |
Shift + Ctrl + Home |
Moves the cursor to the first column and selects all cells between the last selected cell and the current cell. |
Shift + Ctrl + End |
Moves the cursor to the last column and selects all cells between the last selected cell and the current cell. |
Enter Key |
Removes all available selections and selects the current cell. |
Ctrl + Enter Key |
Toggle the selection of the current cell. |
Mouse support with the mode #Multiple:
The following combinations are possible with the left mouse button and the keys Shift and Ctrl can be used for selecting:
Mouse+Key |
Description |
Mouse Button |
Moves the cursor to the appropriate cell, removes all available selections and selects the current cell. |
Shift + Mouse Button |
Moves the cursor to the appropriate cell and selects all cells between the last selected cell and the current cell. |
Ctrl + Mouse Button |
Moves the cursor to the appropriate cell without selecting the current cell and without change the existing selection.
If the cell is already selected, the selection for the cell is removed. |
To select a complete column, the column caption must be clicked with the mouse.
To select a complete row, the selector column (see also bBrowser:EnableSelector) of the appropriate row must be clicked.
Important notes!
The selection modes #Multiple and #Permanent cannot be used in conjunction with the bBrowser:AutoEdit mode #Permanent.
If the bBrowser:CurrentMode #Line is active, only complete rows and no single cells can be selected.
See Also
bBrowser:SelectionFirstColumn()
bBrowser:SelectionNextColumn()
Page url: http://www.YOURSERVER.com/index.html?bbrowser_selectionmode.htm