Purpose
Options with that the behavior of cell group is defined.
Class
Type
Access / Assign
Data Type
DWord
Description
With options the behavior can be controlled. Several options can be combined. The table below defines the supported options:
Option |
Description |
BCGIO_NONE |
No options are defined. |
BCGIO_AUTO |
The following default options are used: •BCGIO_CAPTUREDINGROUP |
BCGIO_ABSOLUTEPOSITION |
The start cell and end cell are not relative to the parent cell group but absolute. If this option is not defined, then the cells are relative. |
BCGIO_CAPTUREDINGROUP |
If a child cell group is moved with the mouse, then it cannot be moved outside the parent cell group. |
BCGIO_MOVABLE_HORIZONTAL |
The cell group can be moved horizontal with the mouse.
Note! To start cell group moving by mouse dragging, the left mouse button and the keyboard keys CTRL + SHIFT must be pressed over the cell group. |
BCGIO_MOVABLE_VERTICAL |
The cell group can be moved vertical with the mouse.
Note! To start cell group moving by mouse dragging, the left mouse button and the keyboard keys CTRL + SHIFT must be pressed over the cell group. |
BCGIO_RESIZABLE_HORIZONTAL |
The width of the cell group can be changed with the mouse. |
BCGIO_RESIZABLE_VERTICAL |
The height of the cell group can be changed with the mouse. |
Single options can be checked, set and deleted with the bit functions
•_And()
•_Or()
•_Xor()
Samples
With the following code fragment the assign is initialized with the options BCGIO_CAPTUREDINGROUP and BCGIO_MOVABLE_HORIZONTAL.
oCellGroupItem:Options := _Or(BCGIO_CAPTUREDINGROUP,;
BCGIO_MOVABLE_HORIZONTAL)
With the following code fragment the option BCGIO_MOVABLE_VERTICAL is set.
oCellGroupItem:Options := _Or(oCellGroupItem:Options,;
BCGIO_MOVABLE_VERTICAL)
With the following code fragment it is checked whether the option BCGIO_ABSOLUTEPOSITION is set.
IF _And(oCellGroupItem:Options, BCGIO_ABSOLUTEPOSITION)>0
:
ENDIF
With the following code fragment the option BCGIO_CAPTUREDINGROUP is deleted.
IF _And(oCellGroupItem:Options, BCGIO_CAPTUREDINGROUP)>0
oCellGroupItem:Options := _Xor(oCellGroupItem:Options,;
BCGIO_CAPTUREDINGROUP)
ENDIF
Page url: http://www.YOURSERVER.com/index.html?bcellgroupitem_options.htm