Navigation:  Classes > bViewStyle >

bViewStyle:Init()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Creates an object of class bViewStyle.

Class

bViewStyle

Type

Method

Syntax

bViewStyle{

[<oForeground>],

[<oBackground>],

[<iAlignment>],

[<oFont>],

[<oGrid>],

[<iOptions>]

[<iAlphaBlendRatio>]

} Æ oViewStyle

Arguments

<oForeground>The foreground color that is to be used.
Data Type:Color

 

<oBackground>The background color that is to be used.
Data Type:Brush

 

<iAlignment>The alignment that is to be used. 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.
Data Type:Font

 

<oGrid>The grid that is to be used.
Data Type:bGrid

 

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

 

Option

Description

BVO_AUTO

No specific options are defined.

BVO_ASPECTRATIO

In combination with the option BVO_STRETCHIMAGE the aspect ratios of a bitmap become retain. This can mean that the bitmap is not adjusted to the whole size of the draw area.

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_RTF

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

BVO_RTF

The value is displayed as RTF text.

 

The option can not be combined with:

BVO_END_ELLIPSIS

BVO_LINEBREAK

BVO_STRETCHIMAGE

If the value is a bitmap, then the size of the bitmap is adjusted to the size of the draw area.

BVO_WORDBREAK

If the value cannot be displayed completely in one line, then the value will be broken at words.

 

The value BVO_AUTO is used as default.

Data Type:DWord

 

<iAlphaBlendRatio>Mixture ratio for overlapping of two colors. he higher the value, the lower is the transparency. The lower  the number, 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

Return Value

oViewStyleThe created object of the class bViewStyle.
Data Type:bViewStyle

Description

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

See Also

bBackgroundStyle:AlphaBlendRatio

bBackgroundStyle:Background

bTextStyle:Alignment

bTextStyle:Foreground

bTextStyle:Font

bViewStyle:Grid

bViewStyle:Options

 


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