isInPainter

isInPainter(): Boolean;

The isInPainter method of the Control class returns true when the control is in the JADE Painter process (that is, the Process class type property has a value of 4) or false if the control is on a runtime form.

The method in the following example shows the use of the isInPainter method.

paint(cntrl: Calendar input) updating;
vars
    today : Date;
begin
    inheritMethod(cntrl);
    if isInPainter then
        buildSelf;
    elseif not isBuilt then
        buildSelf;
        isBuilt := true;
        date    := today;
    endif;
end;