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>

} Æ 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

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.

 


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