Navigation:  Classes > bCellGroupItemStyle >

bCellGroupItemStyle:Init()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Creates an object of class bCellGroupItemStyle.

Class

bCellGroupItemStyle

Type

Method

Syntax

bCellGroupItemStyle{

[<oForeground>],

[<oBackground>],

[<iAlignment>],

[<oFont>],

[<iAlphaBlendRatio>],

[<oBorder>],

[<iOptions>]

} Æ oCellGroupItemStyle

Arguments

<oForeground>The color that should be used for the representation of the cell group value.
Data Type:Color

 

<oBackground>The color that should be used for the representation of the background.
Data Type:Brush

 

<iAlignment>The alignment that is to be used for the representation of the cell group value. The following values are supported:

 

Constant

Description

BALIGN_AUTO

The default values for horizontal and vertical alignment are used.

BALIGN_LEFT

Left justified alignment.

BALIGN_RIGHT

Right justified alignment.

BALIGN_CENTER

Horizontal centered alignment.

BALIGN_TOP

Top justified alignment.

BALIGN_BOTTOM

Bottom justified alignment.

BALIGN_VCENTER

Vertical centered alignment.

 

Data Type:Integer

 

<oFont>The font that is to be used for the representation of the cell group value.
Data Type:Font

 

<iAlphaBlendRatio>Mixture ratio for overlapping of two colors. The higher the value, the lower is the transparency. The lower  the value, the more this color shows through the other one. Supported values are 0 to 100 or the constants below:

 

Constant

Value

BABR_NONE

0

BABR_LIGHT

12

BABR_NORMAL

25

BABR_DARK

45

BABR_SOLID

100

BABR_AUTO

0xFFFFFFFF

 

The argument is supported only for Windows 2000 or newer operating systems. For older operating systems the value BABR_NONE should be used.

Data Type:DWord

 

<oBorder>The border that is to be represented around a cell group.
Data Type:bBorderStyle

 

<iOptions>Options that are to be used for the formatting of a cell group. The following values are supported:

 

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.

 

The value BCGISO_AUTO is used as default.

Data Type:DWord

Return Value

oCellGroupItemStyleThe created object of the class bCellGroupItemStyle.
Data Type:bCellGroupItemStyle

Description

bCellGroupItemStyle:Init() creates an object of the class bCellGroupItemStyle and initializes it.

See Also

bBackgroundStyle:AlphaBlendRatio

bBackgroundStyle:Background

bCellGroupItemStyle:Border

bCellGroupItemStyle:Options

bTextStyle:Alignment

bTextStyle:Foreground

bTextStyle:Font

 


Page url: http://www.YOURSERVER.com/index.html?bcellgroupitemstyle_init.htm