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
Option to bring absolutely positioned) button to front? #2300
Comments
Unfortunately the immediate GUI paradigm doesn't work well with Z ordering. Here's an explanation on item overlapping that I gave some time ago on Discord. It might explain why you're having troubles with the abs-positioned button. We can try to make it work for you if you attach a piece of code and a screenshot of what you're getting and what you want to get. (the text below is a copy-paste from a Discord thread) Personally I don't see any problems with that. You can overlap most widgets in DPG, provided that you understand how ImGui works... That is,
To overlap widgets, use |
Thank you! Just leaving the screenshot here for now, as I won't have time to extract the relevant code sections until Monday. It's this small caret button on the top left corner (right under the import data tab), meant to expand a panel back out, so not taking up extra space is kinda the whole point of it (although currently I'm circumventing the problem by using a spacer next to the plot normally while the button is there). Btw, the plot functionality is amazing, never had a plot this interactive! |
Try to put the caret button into its own |
Is your feature request related to a problem? Please describe.
I have this button with an absolute position set. No matter when I create it - even as the very first or last thing in my main window - it ends up behind another item (if it's relevant - a plot within a child window within a table), so that it's not clickable.
Describe the solution you'd like
I would like this button to hover above all other items and be clickable. Either through a z ordering option, or maybe items with absolute position should by default be above other items.
Describe alternatives you've considered
Tried all orders of item creation, none worked. Layers are for draw items only, right?
The text was updated successfully, but these errors were encountered: