Trying to create a dialog with a menu bar using Eto. I’m stuck with just the basic menu items at the top, cannot figure out how to get the drop down once they are clicked.
working code inside the dialog is something like:
mnuFile = forms.ButtonMenuItem(Text = “File”)
mnuEdit = forms.ButtonMenuItem(Text = “Edit”)
mnuBar = forms.MenuBar(mnuFile, mnuEdit)
self.Menu = mnuBar
Just trying to recreate the familiar menubar, such as:
File
->Save
->Quit
Thanks,
Tim
nathanletwory
(Nathan 'jesterKing' Letwory)
March 18, 2018, 10:07am
2
1 Like
menno
(Menno Deij - van Rijswijk)
March 18, 2018, 10:07am
3
The save and quit button menu items should be added to the mnuFile.Items
collection, see https://github.com/picoe/Eto/wiki/Tutorial-2-Menus-and-Toolbars for more information.
1 Like
Thanks @nathanletwory and @menno ! I thought I tried this before, but I guess not. Working now!
mnuSave = forms.ButtonMenuItem(Text = "Save")
mnuFile.Items.Add(mnuSave)
1 Like