Ed Leafe wrote: > On Apr 23, 2007, at 3:58 PM, Uwe Grauer wrote: > >> I know that you like really short doc strings. > > That's not true. Doc strings are added quickly as new methods are > added. > >> I was asking for differences between >> SDI and MDI behavior of createForm(). > > Then I guess you like really short questions, since I didn't get > that from your post. > > To be honest, only Paul has worked with MDI forms, and I know that > he has spent precious little time on any of the Class Designer stuff, > as he prefers hand-coding everything. It is my understanding that if > you are running Windows and have MDI set as the default, creating a > form with another form as the parent should automatically create it > as a child MDI form. If that's not correct, then something needs to > be changed. > > -- Ed Leafe
Sorry, i misinterpreted your advise: > On Apr 18, 2007, at 2:00 PM, Dave Nation wrote: > >> > Uwe advised : >> > >> > frmclass = "nameofcdxmlfile.cdxml" >> > frm = dabo.ui.createForm(frmclass) >> > if frm: >> > frm.show() # or frm.showModal() >> > >> > This works fine, except the forms don't load as MDI children. >> > If I open a command window from the main form menu it opens as a >> > MDI child, but my ClassDesigner forms do not. > > You need to pass a reference to the parent form to the createForm() > method. So that line should read: > > frm = dabo.ui.createForm(frmclass, parentForm) > > -- Ed Leafe Uwe _______________________________________________ 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/dabo-users/[EMAIL PROTECTED]
