On Jan 7, 2007, at 4:44 AM, Dr R.J.Appleton wrote:

> Using:
>               frm = dabo.ui.createForm(filename)
>               frm.Parent = app.MainForm
>               frm.Show()
>
> to instantiate the form gives me one with all of the DABO menus,  
> ie. it
> is not an MDI form like the App Wizard ones.

        OK, I think I have a handle on this. First, I think that you can't  
create a form and then convert it to a child form; it has to be  
created that way. Second, there is no way to pass the parent  
information, or any other properties for that matter. Third, even if  
you could pass properties to createForm(), the attProperties defined  
in the cdxml file would take precedence.

        I'm working to change this. Passing the parent information was  
pretty easy, but changing the attProperty import is a bit more  
involved. I have to run a bunch of tests to make sure that it works  
as expected. With luck, expect a fix later today. This will allow you  
to use:

frm = dabo.ui.createForm(filename, parent=app.MainForm)
frm.show()

        P.S. - note the use of lower-case 'show()', which is the Dabo  
version, instead of the title-case 'Show()' which is the wxPython  
method. You should always call the Dabo versions of methods, since  
they may have additional logic that the wxPython version does not.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to