Purpose
Creates an object of class bTextStyle.
Class
Type
Method
Syntax
bTextStyle{
[<oForeground>],
[<oBackground>],
[<iAlignment>],
[<oFont>],
[<iAlphaBlendRatio>]
} Æ oTextStyle
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 |
<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
oTextStyle | The created object of the class bTextStyle. |
Data Type: | bTextStyle |
Description
bTextStyle:Init() creates an object of the class bTextStyle and initializes it.
See Also
bBackgroundStyle:AlphaBlendRatio
Page url: http://www.YOURSERVER.com/index.html?btextstyle_init.htm