Comments (3)
There is a lot of useful documentation (in form of source comments) in the header file itself if you navigate to the function declarations. Small excerpt:
IMGUI_API bool BeginMenu(const char* label, bool enabled = true); // create a sub-menu entry. only call EndMenu() if this returns true!
IMGUI_API void EndMenu(); // only call EndMenu() if BeginMenu() returns true!
In short: your unconditional call to EndMenu()
is wrong.
from imgui.
WOOW, Thank you. I didn't expect it to be this simple. HAHA.
Well thank you very much for your quick response.
I'll close this issue now.
from imgui.
That's not the only thing though. As you can see in the documentation, BeginMenu()
is for sub-menues only, not for menu bars. A few lines higher in the header you will find the correct functions to use if you want a menu bar (and according to your window flag that seems to be your intention) instead of a sub-menu widget.
Also always a good reference for how things work: ImGui::ShowDemoWindow()
. That function is there to showcase features and is basically a reference source on how to use them. And it starts with a menu bar.
from imgui.
Related Issues (20)
- Recommended way to expand / collapse tree nodes with keyboard shortcuts? HOT 3
- VuIkan: invalid Dynamic Rendering functions from the Instance-level loader HOT 3
- Text Bottom Padding Bug HOT 1
- Power savings & hardware usage HOT 3
- Add RGFW backend implementation HOT 2
- Text wrapping: how does it work? HOT 1
- ImDrawList rects aren't perfect HOT 7
- Running ImGui app on Arm Processor (Allwinner H3 with mali 400 -> orangepi one) HOT 1
- Can no longer use ctrl shortcuts in InputText's as of v1.90.6 HOT 4
- ImGui::BeginTooltip() should allow specifying override HOT 4
- No Hover Flags in ImGui::IsAnyItemHovered() HOT 4
- Keeping combo open after clicking selectable
- Stretch table to window scrollable size
- TitleBarRect does not contain FramePadding. This will cause the window to not move correctly after ConfigWindowsMoveFromTitleBarOnly is enabled.
- Small window flickering when move out the edge of main window. HOT 5
- Can't select only 1 input when inputs are slightly close to each other HOT 12
- Unresolved external symbol, all ImGui CPP Files are included HOT 3
- Jumping the user to a different part of the GUI HOT 3
- Mouse resize child window HOT 1
- Changing hIcon and hIconSm are not changing to custom icon HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgui.