Public interface for creating Forms
Posted: Fri Aug 07, 2009 10:38 am
by Eric Peachey >> Thu, 30 Mar 2000 21:50:51 GMT
Hello,
It could be useful if developers could create new forms without using the Painter. This could enable developers to develop smarter forms wizard-type tools to speed application development.
Also, it's sometimes useful to take forms developed in other schemas and create a copy of it in your own schema but use different classes of Control. (E.g. you want to re-use somebody else's work but it doesn't fit your framework.) For instance you might take a form which has some Label controls and some TextBox controls but you want to make it fit your framework which has its own subclasses of TextBox and Label etc (say OwnTextBox and OwnLabel). You'd also want to copy over any properties and methods of the donor class. At the moment I'm not sure how you could automate this - you'd probably end up laboriously copying the form in the Painter.
Is this insane? Have I been drinking too much coffee?
Eric in Dunedin (Low cloud but mild)
Hello,
It could be useful if developers could create new forms without using the Painter. This could enable developers to develop smarter forms wizard-type tools to speed application development.
Also, it's sometimes useful to take forms developed in other schemas and create a copy of it in your own schema but use different classes of Control. (E.g. you want to re-use somebody else's work but it doesn't fit your framework.) For instance you might take a form which has some Label controls and some TextBox controls but you want to make it fit your framework which has its own subclasses of TextBox and Label etc (say OwnTextBox and OwnLabel). You'd also want to copy over any properties and methods of the donor class. At the moment I'm not sure how you could automate this - you'd probably end up laboriously copying the form in the Painter.
Is this insane? Have I been drinking too much coffee?
Eric in Dunedin (Low cloud but mild)