-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
Drawing underneath scrollbars? #4636
Comments
The problem is that would conflict with drawing over the scrollbar as in #3114 One possible hacky workaround would be specifying |
Thanks, I can give that hack a try! |
This seems to work for me. I ended up copy/pasting the calculations of whether there should be scrollbars to a function that I call right after |
Version/Branch of Dear ImGui:
Version: 1.84.1
Branch: docking
Back-end/Renderer/Compiler/OS
OpenGL/GLFW
Windows
My Issue/Question:
I would like to be able to draw underneath the scrollbar (e.g. to have an image or gradient as the background), and have the scrollbar be drawn (with alpha) on top. I tried drawing like that by pushing
OuterRectClipped
as the clip rect and then filling that with what I want as a background. But the scrollbar is drawn before my content, so it doesn't work.Is this possible to achieve? Would it e.g. be possible to draw the decorations in
ImGui::End
instead of inImGui::Begin
?Screenshots/Video
This is with drawing using
InnerRect
instead, which doesn't hide the scrollbar, but I get that slightly ugly looking scrollbar.I'd like for the image/gradient to extend underneath the scrollbar.
The text was updated successfully, but these errors were encountered: