Paint
DataWindow expression function
Description
Takes a string expression argument and returns the same string,
allowing you to paint inside a DataWindow object in a way that respect the
position and z-order of other DataWindow objects.
Syntax
|
1 |
Paint ( expr ) |
|
Argument |
Description |
|---|---|
|
expr |
Any valid DataWindow expression. It should contain a |
Return value
String. The Paint expression function takes a string expression
argument and returns the same string.
Examples
This example instantiates the drawing functions and, if the drawing
function returns false, the text “No Pie” displays.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
Paint ( MyDrawPieSlice ( GetPaintDC() GetPaintRectX() GetPaintRectY() GetPaintRectWidth() GetPaintRectHeight() GetRow()*100/RowCount() ) ) Paint ( MyDrawPieSlice ( GetPaintDC(), GetRow()*100/RowCount() ) ) Paint ( if MyDrawPieSlice(GetPaintDC()),"","No Pie") ) |