I have created a Menu Bar for my DABO application with the following code.
form = dabo.ui.dForm(app.MainForm, Caption="MAIN MENU",
BackColor='lightyellow',
MenuBarClass=dabo.ui.dMenuBar, BorderResizable=False,
WindowState='Maximized')
mmaster = dabo.ui.dMenu()
mmaster.Caption = '&Masters'
mmaster.append('Ledgers', HotKey='Ctrl+L', OnHit=doLedgerEntry,
help='Add ledger groups')
mmaster.append('Groups', HotKey='Ctrl+G', OnHit=doGroupEntry,
help='View ledger groups')
form.MenuBar.appendMenu(mmaster)
This is showing up properly. A Menu called Masters is created, under
which two menu items called 'Ledgers' and 'Groups' are displayed. When I
click them, the corresponding forms are also displayed.
Now, I would like to add a new Menu Item to the Menu Bar. Not another
Menu, but just a single menu item - something like Quit. The users can
just click on that and close the application. I think, it should be
something like
miquit = dabo.ui.dMenuItem()
But, how to append this menu item to the menubar?
Manoharan
_______________________________________________
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]