Paint

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

Paint ( expr )

Argument

Description

expr

Any valid DataWindow expression. It should contain a function call to a drawing global function with rendering logic. If expr is a string expression and the value is not null, the computed field will render the evaluated string expression.


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.

Paint
(
     MyDrawPieSlice
     (
          GetPaintDC()
          GetPaintRectX()
          GetPaintRectY()
          GetPaintRectWidth()
          GetPaintRectHeight()
          GetRow()*100/RowCount()
     )
)
 
Paint
(
     MyDrawPieSlice
     (
          GetPaintDC(),
          GetRow()*100/RowCount()
     )
)
 
Paint
(
 if MyDrawPieSlice(GetPaintDC()),"","No Pie")
)