Paul McNett wrote:
> Ed Leafe wrote:
>> On Jan 6, 2007, at 6:35 PM, Dr R.J.Appleton wrote:
>>
>>> I tried frm.ShowMenuBar=False, it gets rid of the menu bar OK.   
>>> There is
>>> still a problem in that the DABO menus are shown in the form frame,
>>> which they should not be as this should be an MDI child form as I have
>>> an MDI app on Windows.
>>>
>>> Is there any way to get the form created from file to be an MDI child?
>>      I don't work with MDI forms, so you'll have to explain the problem a  
>> bit better. You say that changing the setting gets rid of the menu  
>> bar, but that they are still shown? I'm not following.
> 
> I don't understand either. When I make an appwizard app and run it on 
> Windows, I get an MDI application where there's a main form and the 
> child forms are contained within it. In addition, the child's menu gets 
> merged in with the main form's menu and only displayed on the main form.
> 
> It is a complete MDI application that works like MDI is supposed to, I 
> think.
> 

The App Wizard does indeed generate a complete MDI application.  That is 
what I used to generate a stub application with data maintenance forms. 
  Now I want to use the class designer to add other, more complex, 
forms.  I want these forms to be shown in MDI child windows like the 
others.

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.

The attached pictures show this.

It looks like createForm() does not check the global MDI flag set in 
<application name>.py:

        if sys.platform[:3] == "win":
            dabo.settings.MDI = True

regards,
Richard Appleton



--- StripMime Report -- processed MIME parts ---
multipart/mixed
  text/plain (text body -- kept)
  image/bmp
  image/bmp
---

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

Reply via email to