Purpose
Options with that graphical representation is formatted.
Class
Type
Access / Assign
Data Type
DWord
Description
With options the graphical representation can be controlled. Several options can be combined. The table below defines the supported options:
Option |
Description |
BCGISO_NONE |
No options are defined. |
BCGISO_AUTO |
The following standard options are used: •BCGISO_END_ELLIPSIS •BCGISO_VALUEVISIBLE |
BCGISO_END_ELLIPSIS |
If the value of the cell group cannot be displayed completely, then the value will be truncated and ellipsis are be added.
The option can not be combined with: •BCGISO_RTF |
BCGISO_LINEBREAK |
If the value of the cell group contains line break characters (CRLF), then the value is broken at these.
The option can not be combined with: •BCGISO_RTF |
BCGISO_OWNERDRAW |
The cell group must drawn with the Owner-Draw interface of the bBrowser. For this the method DrawValue() is called in the owner of the bBrowser. The method will be passed an object of class bDrawValueEvent as the argument. |
BCGISO_OWNERDRAW_ADDITIONAL |
The cell group is drawn by the bBrowser. After that the cell group is submit to the Owner-Draw interface of the bBrowser. For this the method DrawValue() is called in the owner of the bBrowser. The method will be passed an object of class bDrawValueEvent as the argument. |
BCGISO_RTF |
The value of the cell group is displayed as RTF text.
The option can not be combined with: •BCGISO_END_ELLIPSIS •BCGISO_LINEBREAK |
BCGISO_TRANSPARENTBACKGROUND |
The background of the cell group is drawn transparently. |
BCGISO_VALUEVISIBLE |
The value of the cell group is displayed in the cell group. |
BCGISO_WORDBREAK |
If the value of the cell group cannot be displayed completely in one line, then the value will be broken at words. |
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 BCGISO_LINEBREAK and BCGISO_WORDBREAK.
oCellGroupItemStyle:Options := _Or(BCGISO_LINEBREAK,;
BCGISO_WORDBREAK)
With the following code fragment the option BCGISO_END_ELLIPSIS is set.
oCellGroupItemStyle:Options := _Or(oCellGroupItemStyle:Options,;
BCGISO_END_ELLIPSIS)
With the following code fragment it is checked whether the option BCGISO_END_ELLIPSIS is set.
IF _And(oCellGroupItemStyle:Options, BCGISO_END_ELLIPSIS)>0
:
ENDIF
With the following code fragment the option BCGISO_END_ELLIPSIS is deleted.
IF _And(oCellGroupItemStyle:Options, BCGISO_END_ELLIPSIS)>0
oCellGroupItemStyle:Options := _Xor(oCellGroupItemStyle:Options,;
BCGISO_END_ELLIPSIS)
ENDIF
Page url: http://www.YOURSERVER.com/index.html?bcellgroupitemstyle_options.htm