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. Before the value is drawn, it is transformed into a string with the method bCompoundvalue:Transform().
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