How do you reference and control the Jade Painter

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

How do you reference and control the Jade Painter

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:17 pm

by James Plank >> Wed, 4 Aug 1999 21:51:05 GMT

I like the idea of writing my own form creation programme, and I can see how the 'addControl' and 'flagControlForSave ' can work to do this.... BUT

how do you reference and control the Jade Painter

Is the jade painter a hidden Schema, or class??

Regards James

************************************* from the HELP file ************* Signature addControl(c: Control) updating;

The addControl method of the Form class dynamically adds the control referenced in the c parameter to a form at run time. If the c parameter references a persistent object, the call is rejected.

Note If you use this method to add a control to a form in the
" JADE Painter " , see also the flagControlForSave method.

--
James Plank
Icon Communications NZ

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: How do you reference and control the Jade Painter

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:17 pm

by Dean Cooper >> Wed, 4 Aug 1999 22:15:58 GMT
I like the idea of writing my own form creation programme, and I can see how the 'addControl' and 'flagControlForSave ' can work to do this

You can use addControl and flagControlForSave in methods on your subclassed controls (windowCreated, for example) to dynamically add controls to forms in painter at development time, and have the painter save these controls persistently when the form is saved. However, the painter is effectively calling your methods on your behalf; you cannot write code to control the painter.
Is the jade painter a hidden Schema, or class??

Like the whole of the development environment, the painter is implemented in a system schema that is not available to user applications.

Dean.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 8 guests