[Solved] API to show standalone context menu #5270
Closed
crumblingstatue
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
|
My current "workaround" is to show a little mouse icon as indicator that the user should click the menu button. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Right now, context menus must be rooted in other widgets. Egui to my knowledge doesn't have an API to show a standalone context menu.
It can be hacked around by showing e.g. an
egui::Areawith anegui::Frame, but it won't fully act like a context menu, becausemenu_buttons inside it act like top-level menu buttons, rather than nested menu buttons.There is no way around this as far as I can tell.
Ui::submenu_buttonispub(crate).Beta Was this translation helpful? Give feedback.
All reactions