GetPaintDC DataWindow expression function
Description
Returns the GDI context to which to draw.
Syntax
1 |
<span>GetPaintDC</span> ( ) |
Return Values
UnsignedLong.
Usage
The clip region of the GDI context is guaranteed to be the
same as the rectangle defined by GetPaintRectHeight, GetPaintRectWidth, GetPaintRectX,
and GetPaintRectY.
You can also use the GetClipBox GDI function. You can compute
the bounds inside the global rendering function itself.
The GetPaintDC expression is only valid
in the context of the Paint expression function.
Examples
This example draws a cube with the text of the column
emp_lname.
1 |
Paint |
1 |
( |
1 |
     MyDrawWPFCubeText |
1 |
     ( |
1 |
          GetPaintDC(), |
1 |
          GetPaintRectX(), |
1 |
          GetPaintRectY(), |
1 |
          GetPaintRectWidth(), |
1 |
          GetPaintRectHeight(), |
1 |
          emp_lname, |
1 |
          GetRow() |
1 |
     ) |
1 |
) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments