Menu Bar in Eto

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:


You need to add menu items to the file and edit items.

See for some inspiration.

1 Like

The save and quit button menu items should be added to the mnuFile.Items collection, see 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")
1 Like