Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use menubar? #63

Closed
caijinyan18700965617 opened this issue May 12, 2024 · 2 comments
Closed

How to use menubar? #63

caijinyan18700965617 opened this issue May 12, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@caijinyan18700965617
Copy link

I want to generate a UI based on Gtk4.jl, with a menubar that only includes a GtkMenuButton among the menu-related options. I couldn't find MenuBar. I could find GMenuModel and GMenuItem. However, they cannot be pushed to the any layoutObject. Could you add a tutorial about how to add a menubar?

@jwahlstrand
Copy link
Member

For now you could look at Gtk4Makie for an example.

I do not see MenuBar in the GTK4 documentation. We only provide what's in GTK4.

@jwahlstrand jwahlstrand added the documentation Improvements or additions to documentation label May 12, 2024
@jwahlstrand
Copy link
Member

Here's a bit of documentation, hope this helps: https://juliagtk.github.io/Gtk4.jl/dev/manual/menus/

There's also an example of defining a menu and menu button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants