Navigation:  Classes > bDrawValueEvent >

bDrawValueEvent:Init()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Creates an object of the class bDrawValueEvent.

Class

bDrawValueEvent

Type

Method

Syntax

bDrawValueEvent{

<hWindow>,

<iMessage>,

<iWParam>,

<iLParam>,

<oWindow>,

<uValue>,

<hDC>,

<srcArea>,

<oFont>,

<iAlignment>,

<oForeground>,

<oBackground>,

<lDeleted>,

<lSelected>,

<lEnabled>,

<lCurrent>,

<iAlphaBlendRatio>,

<oCell>

} Æ oDrawValueEvent

Arguments

<hWindow>The window handle of the owner of the event.
Data Type:Ptr

 

<iMessage>The constant of the message (WM_COMMAND).
Data Type:Integer

 

<iWParam>The WParam of the message.
Data Type:DWord

 

<iLParam>The LParam of the message.
Data Type:Long

 

<oWindow>The owner of the event.
Data Type:Object

 

<uValue>The value that is to be drawn.
Data Type:Usual

 

<hDC>The device context in which must be drawn.
Data Type:Pointer

 

<srcArea>The area, within which the value is to be drawn. The area is specified by reference as Windows structure of the type _winRect.
Data Type:_winRect

 

<oFont>The font in which the value is to be drawn.
Data Type:Font

 

<iAlignment>The alignment in which the value is to be drawn. The following alignments 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

 

<oForeground>The foreground color in which the value is to be drawn.
Data Type:Color

 

<oBackground>The background color in which the value is to be drawn.
Data Type:Brush

 

<lDeleted>A logical value that indicates whether the value is to be drawn in deleted state.
Data Type:Logic

 

<lSelected>A logical value that indicates whether the value is to be drawn in selected state.
Data Type:Logic

 

<lEnabled>A logical value that indicates whether the value is to be drawn in enabled state.
Data Type:Logic

 

<lCurrent>A logical value which indicates whether the value is under the cursor.
Data Type:Logic

 

<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

 

<oCell>The cell for which the value is to be drawn. Depending on whether the value is to be drawn for a cell in the column captions, the column data or the column footer, the access bCell:Row contains the following values:

 

Column Area

bCell:Row

Column Caption

-1

Column Data

The row number of the record.

Column Footer

-2

 

Data Type:bCell

Return Value

oDrawValueEventThe created object of the class bDrawValueEvent.
Data Type:bDrawValueEvent

Description

bDrawValueEvent:Init() creates a new object of the class bDrawValueEvent and initializes it.

See Also

bDrawValueEvent:Alignment

bDrawValueEvent:Area

bDrawValueEvent:AlphaBlendRatio

bDrawValueEvent:Background

bDrawValueEvent:Cell

bDrawValueEvent:Current

bDrawValueEvent:Deleted

bDrawValueEvent:Enabled

bDrawValueEvent:Font

bDrawValueEvent:Foreground

bDrawValueEvent:Selected

 


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