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 : showing items border inside the menu #819

Closed
codz01 opened this issue Sep 8, 2016 · 5 comments
Closed

how to : showing items border inside the menu #819

codz01 opened this issue Sep 8, 2016 · 5 comments

Comments

@codz01
Copy link

codz01 commented Sep 8, 2016

Hi
how to apply ImGuiWindowFlags_ShowBorders flag to those items ?
imgui

@ocornut ocornut added the bug label Sep 8, 2016
@ocornut
Copy link
Owner

ocornut commented Sep 8, 2016

The ShowBorders flag is inherited, so your parent most window must have that flag.
Interestingly it's not currently possible from BeginMainMenuBar(), etc.
As a test, does adding the _ShowBorders flag within BeginMainMenuBar() fixes it for you?

(The ShowBorders flag perhaps should maybe be retired/reworked it should be only part of style.)

@codz01
Copy link
Author

codz01 commented Sep 8, 2016

As a test, does adding the _ShowBorders flag within BeginMainMenuBar() fixes it for you?
no , still the same

@colesnicov
Copy link

#1031

@ocornut
Copy link
Owner

ocornut commented Nov 19, 2017

@codz01 Pushed changes today so you can now freely alter the border size style.FrameBorderSize with e.g. ImGui::PushStyleVar(ImGuiStyleVar_FrameBorderSize, 1.0f). The ImGuiWindowFlags_ShowBorders flag has been completely obsoleted.

@codz01
Copy link
Author

codz01 commented Nov 21, 2017

great , many thanks

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

No branches or pull requests

3 participants