Saving visible properties of subclassed controls

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Saving visible properties of subclassed controls

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:22 pm

by torrie >> Tue, 15 Apr 2003 7:55:40 GMT

I've made a composite control in Jade where a subclass of the BaseControl adds several controls to the form when it is added in painter. If I set the visible property of one of these controls to false, even though flagControlForSave has been called for that control the control is not saved by painter. Does anyone know how to set the visible property on a custom control so that it is saved by painter?

Torrie

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

Re: Saving visible properties of subclassed controls

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:22 pm

by allistar >> Thu, 17 Apr 2003 8:52:25 GMT

Hi Torrie,
I can't answer your specific question, but our subclassed controls (from BaseControl) are coded so that the child controls are only added at runtime, not in the painter. We do this by using the "inPainter" property (or is it a method?).

Unless you have a goof reason for adding the composite controls in the painter, I would suggest only doing it at runtime (not for any specific reason except that it works great for us).

Hope this helps,
Allistar.

------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst allistar@silvermoon.co.nz
Auckland, NEW ZEALAND

Silvermoon Software
Specialising in JADE development and consulting
Visit us at: http://www.silvermoon.co.nz ------------------------------------------------------------------


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests

cron