From: [email protected] [mailto:[email protected]] On
Behalf Of Ed Leafe
Sent: Thursday, May 20, 2010 3:40 PM
To: Dabo Users list
Subject: Re: [dabo-users] Open a new form within the application frame
(notas new window)

On May 20, 2010, at 9:12 AM, Martinecz Miklós wrote:

> I would like to create a main form that serves as my application user
> interface.
> 
> When the user clicks a menu item, any new form is supposed to open within
> this user interface.


        You're looking for the Windows MDI interface; by default, this is
turned off. To get the MDI behavior, in your main script, add the line:

dabo.MDI = True

after your 'import dabo' line. Then just make sure that when you open the
child forms, you specify the main form as the parent.


-- Ed Leafe

****

Sorry Ed,

How do I specify the main form as the parent? I did not understand this
part.

Say, I have a MainForm now opening first.
Clicking on a menu item, the ChildForm should appear on place of the
MainForm.

As I mentioned before, I use the following code to show the ChildForm:

frm=dabo.ui.createForm('c:\Projects\UTerv\ui\Intro2.cdxml')
frm.show()

How should I change the code to follow your advice?

Miklós

_______________________________________________
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/!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAACkGPannGP0urGxVyyklpm8KAAAAQAAAAj76jYWOiB0K/[email protected]

Reply via email to