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 |
<span>Paint</span> ( <span>expr</span> ) |
Argument |
Description |
---|---|
expr |
Any valid DataWindow expression. It should |
Return Values
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 |
Paint |
1 |
( |
1 |
     MyDrawPieSlice |
1 |
     ( |
1 |
          GetPaintDC() |
1 |
          GetPaintRectX() |
1 |
          GetPaintRectY() |
1 |
          GetPaintRectWidth() |
1 |
          GetPaintRectHeight() |
1 |
          GetRow()*100/RowCount() |
1 |
     ) |
1 |
) |
1 |
1 |
Paint |
1 |
( |
1 |
     MyDrawPieSlice |
1 |
     ( |
1 |
          GetPaintDC(), |
1 |
          GetRow()*100/RowCount() |
1 |
     ) |
1 |
) |
1 |
1 |
Paint |
1 |
( |
1 |
 if MyDrawPieSlice(GetPaintDC()),"","No Pie") |
1 |
) |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest