VLPropertyList Reference

MethodPropertyDraw

(For advanced usage)
See Also See Also Applies To Applies To

This event is triggered while drawing the values for properties having CustomDraw set to true.

 

Syntax

Private Sub object_PropertyDraw (ByVal hPropertyDC As Long,ByVal aProperty As CProperty,ByVal cx As Long ByVal cy As Long, ByVal eDrawStage As Boolean, ByRefbDoDefault As vlDrawStage)

 

The PropertyDraw event syntax has these parts:

PartDescription
object An object expression that evaluates to VLPropertyList.

hPropertyDC

A numeric value specifies a handle to the device context.

aProperty

An object which evaluates to the CProperty.

cx

A numeric value which specifies Width of the property value cell rectangle in pixels.

cy

A numeric value which specifies Height of the property value cell rectangle in pixels.

eDrawStage

An Enum expression specifying the different stages while drawing.

bDoDefault

A boolean expression specifying to do or not the default drawing of the cell.
You must ensure that your drawing stays with the rectangular area (0, 0, cx, cy).

 

Settings

setting for eDrawStage are:

Constant Setting Description
ConstantvlPreErase 0 Before erasing the property value cell rectangle.
ConstantvlPostErase 1 After erasing the property value cell rectangle.
ConstantvlPostDraw 2 After drawing is over of the property value cell rectangle.

 

Remarks

To skip the default action for the indicated drawing stage of the property value cell, bDoDefault must be set to False. This event will be triggered for a property only if its CustomDraw attribute is set to True . Property name cannot be custom drawn.