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

window border(color) visible, Draw in 'window background'. #1761

Closed
BrunoGysin opened this issue Apr 20, 2018 · 4 comments
Closed

window border(color) visible, Draw in 'window background'. #1761

BrunoGysin opened this issue Apr 20, 2018 · 4 comments

Comments

@BrunoGysin
Copy link

BrunoGysin commented Apr 20, 2018

I followed the code example provided in:
#466

ImGui::SetNextWindowPos(ImVec2(0,0));
ImGui::SetNextWindowSize(ImGui::GetIO().DisplaySize);
ImGui::Begin("foobar", NULL, ImVec2(0,0), 0.0f, ImGuiWindowFlags_NoTitleBar|ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoMove|ImGuiWindowFlags_NoScrollbar|ImGuiWindowFlags_NoScrollWithMouse);

I've used it since to create an 'invisible' window,
which is the size of the application, which makes it simulate drawing in the background of the application.

but was using an older version of ImGUI, and today I updated.
but the window in which it should be 'invisible' now has a border.

I'm using bg_alpha_override = 0.f
this was supposed to be working.

image:
https://prnt.sc/j7thki

@ocornut
Copy link
Owner

ocornut commented Apr 20, 2018

See #1758

@ocornut ocornut closed this as completed Apr 20, 2018
@ocornut
Copy link
Owner

ocornut commented Apr 20, 2018

Surprisingly this has been coming a few times, I wonder if I should instate a ImGuiWindowFlags_NoBorder that would only affect the WindowBorderSize, but not affect FrameBorderSize or child windows..

@BrunoGysin
Copy link
Author

I believe that this should be resolved with bg_alpha_override = 0.0f

the problem with this solution is that it affects other windows.

@ocornut
Copy link
Owner

ocornut commented Apr 20, 2018

You could use SetNextWindowBgAlpha(0.0f) but right now it doesn't affect the border (I think it should and i'll change that now).

the problem with this solution is that it affects other windows.

I don't understand. No it doesn't.

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

No branches or pull requests

2 participants