-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Multiple Scrolling Region #894
Comments
Vivienne, The problem here is that your 4 calls to BeginChild use the same identifier, so it is appending 4 times to the same child. In C++ when you assign to a static variable when declaring it, the assignment is only done the first time. So
The other less obvious and tricky issue here is that when passing a string identifier to BeginChild(), the identifier isn't being hashed using the ID stack of imgui. That might change in the future. So you can do:
or
PS: the PushItemWidth() call appears to be useless here. |
Thank you for the clarification. |
No problem. By the way I applied the change to BeginChild() that I wanted to do already, which is that the stack-id is applied over the string child label. So in the example above:
It is now possible to just pass a string to BeginChild():
Which is the common pattern. |
Also #74, #96, #480, #501, #647, #654, #719, #843, #894, #1057, #1173, #1390, #1414, #1556, #1768, #2041, #2116, #2330, #2475, #2562, #2667, #2807, #2885, #3102, #3375, #3526, #3964, #4008, #4070, #4158, #4172, #4199, #4375, #4395, #4471, #4548, #4612, #4631, #4657, #4796, #5210, #5303, #5360, #5393, #5533, #5692, #5707, #5729, #5773, #5787, #5884, #6046, #6093, #6186, #6223, #6364, #6387, #6567, #6692, #6724, #6939, #6984, #7246, #7270, #7375, #7421, #7434, #7472, #7581, #7724, #7926, #7937 and probably more.. Tagging to increase visibility!
Hello,
I'm trying to implement multiple scrolling regions.
Visually
[Career] [Tier1]
............ [Tier2]
............ [Tier3]
I tried the following code
I'm not sure what is wrong. It's nothing major but I am wondering if anyone tried it before.
Vivienne
The text was updated successfully, but these errors were encountered: