Purpose
Options with that the value is formatted.
Class
Type
Access / Assign
Data Type
DWord
Description
With options the formatting of the value can be controled. Depending on the data type of the value, single options are not supported. Several options can be combined. The following table defines the supported options:
Option |
Description |
||||
BVO_AUTO |
No specific options are defined. |
||||
BVO_END_ELLIPSIS |
If the value cannot be displayed completely, then the value will be truncated and ellipsis are be added.
The option can not be combined with:
|
||||
BVO_LINEBREAK |
If the value contains line break characters (CRLF), then the value is broken at these.
The option can not be combined with:
|
||||
BVO_RTF |
The value is displayed as RTF text.
The option can not be combined with:
|
||||
BVO_WORDBREAK |
If the value cannot be displayed completely, 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 BVO_LINEBREAK and BVO_WORDBREAK.
oViewStyle:Options := _Or(BVO_LINEBREAK,;
BVO_WORDBREAK)
With the following code fragment the option is set to BVO_END_ELLIPSIS.
oViewStyle:Options := _Or(oViewStyle:Options,;
BVO_END_ELLIPSIS)
With the following code fragment it is checked whether the option BVO_END_ELLIPSIS is set.
IF _And(oViewStyle:Options, BVO_END_ELLIPSIS)>0
:
ENDIF
With the following code fragment the option BVO_END_ELLIPSIS is deleted.
IF _And(oViewStyle:Options, BVO_END_ELLIPSIS)>0
oViewStyle:Options := _Xor(oViewStyle:Options,;
BVO_END_ELLIPSIS)
ENDIF
Page url: http://www.YOURSERVER.com/index.html?bviewstyle_options.htm