Purpose
Draws the value with all subordinated values.
Class
Type
Method
Syntax
<oCompoundValue>:Draw(
<hDC>,
<srcArea>,
<iAlignment>,
<oForeground>,
<oBackground>,
<oFont>,
<lDeleted>,
<lSelected>,
<lEnabled>,
<lCurrent>,
<lFocus>
) Æ lDraw
Arguments
<hDC> | The device context in which the value must be drawn. |
Data type: | Ptr |
<srcArea> | The rectangle structure that defines the area in which the value is to be drawn. The structure is specified as reference. |
Data type: | _winRect |
<iAlignment> | The alignment, with which the value within the defined area is to be drawn, if the value did not define an own alignment. |
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, if the value did not define own foreground color. |
Data type: | Color |
<oBackground> | The background color in which the value is to be drawn, if the value did not define an own background color. |
Data type: | Brush |
<oFont> | The font in which the value is to be drawn, if the value did not define an own font. |
Data type: | Font |
<lSelected> | A logical value that indicates whether the value is to be drawn in the selected state. In this case the arguments <oBackground> and <oForeground> are not considered. |
Data type: | Logic |
<lDeleted> | A logical value that indicates whether the value is to be drawn in the deleted state. In this case the arguments <oBackground> and <oForeground> are not considered. |
Data type: | Logic |
<lEnabled> | A logical value that indicates whether the value is to be drawn in the enabled or disabled state. In the disabled state the argument <oForeground> is not considered. |
Data type: | Logic |
<lCurrent> | A logical value which indicates whether the value is under the cursor. |
Data type: | Logic |
<lFocus> | A logical value that indicates whether the value is to be drawn in the focused state. |
Data type: | Logic |
Return Value
lDraw | A logical value that indicates whether the value with all subordinated values was drawn. |
TRUE | The value was drawn. |
FALSE | The value was not drawn. |
Data type: | Logic |
Description
bCompoundValue:Draw() draws the value with all subordinated values within the specified area.
Values of the type Bitmap or Icon are drawn by the method. For all other values of the type object, the method examines whether in the object is defined a method with the name Draw(). If a method is defined, this is called for drawing. The method is invoked with the following arguments:
<object>:Draw(
<hDC>,
<srcArea>,
<iAlignment>,
<oForeground>,
<oBackground>,
<oFont>,
<lDeleted>,
<lSelected>,
<lEnabled>,
<lCurrent>,
<lFocus>
)
See Also
bCompoundValue:InactiveSelectedBackground
bCompoundValue:InactiveSelectedForeground
bCompoundValue:SelectedBackground
bCompoundValue:SelectedForeground
Page url: http://www.YOURSERVER.com/index.html?bcompoundvalue_draw.htm