Page 1 of 1

Saving visible properties of subclassed controls

Posted: Fri Aug 07, 2009 12:22 pm
by ConvertFromOldNGs
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

Re: Saving visible properties of subclassed controls

Posted: Fri Aug 07, 2009 12:22 pm
by ConvertFromOldNGs
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 ------------------------------------------------------------------