GetPaintDC
DataWindow expression function
Description
Returns the GDI context to which to draw.
Syntax
|
1 |
GetPaintDC ( ) |
Return value
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 2 3 4 5 6 7 8 9 10 11 12 13 |
Paint ( MyDrawWPFCubeText ( GetPaintDC(), GetPaintRectX(), GetPaintRectY(), GetPaintRectWidth(), GetPaintRectHeight(), emp_lname, GetRow() ) ) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest