On Friday 21 May 2010 06:31:19 am Paul McNett wrote:
> The form defined by firstForm.cdxml needs to derive from dabo.ui.dFormMain,
> and not dabo.ui.dForm.
>
> > I put the following code in the afterInitAll of the firstForm:
> >       frm=dabo.ui.createForm("c:\Projects\UTerv\ui\secondForm.cdxml",
> > ...self.Application.MainForm)
> >       frm.show()
>
> It would be equivalent to say:
>
> frm = dabo.ui.createForm("c:\Projects\UTerv\ui\secondForm.cdxml", self)

Paul now I'm confused.  As I read this thread the poster has added
"MDI = True" to the first form or calling form.  It is my understanding that 
adding MDI will force the first form to derive from "dabo.ui.dFormMain".  
Maybe this has not been done?

Therefore, the posters code to start the second form is correct in my mind.  
Am I wrong?

It could be that the issue is - he has added objects/controls to the first 
form. I would think it could cause issues.   

Added thought - the ClassDesigner does not provide an easy way to set the MDI 
property.  Maybe the opening screen could provide a "MDI Form" or some such 
description.

Johnf
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to