-
-
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
Clicking on an InputFloat gives focus to InputText as well? #480
Comments
Beginner mistake since I'm new to your framework. It seems that you're using the 'label' that gets passed to InputXXX as a hash value? Giving InputText a value for its label the issue is no longer. It would be nice if the label was positioned to the left instead of the right. There's probably a way to do that just have to dig in. |
Is there anyway to give custom values to the hashes (different than the label)? For example, I have a ImGui::Text with value "Reset" and 3 buttons beside it on the same line "Position", "Rotation" and "Scale" (they reset the position, rotation or scale of the selected object etc) And then at the bottom, I have an InputFloat with label "Scale" - now I have two controls with the same label (thus the same hash?), the "Scale" Button and InputFloat. If I give focus to the InputFloat, it unfocuses immediately. Unless I give them different labels e.g. "Reset Scale" and "Scale" |
From docs:
|
This is all discussed in the FAQ.
|
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!
Greetings!
I'm having a weird situation where I have an InputFloat and an InputText, if I give focus to the InputFloat, the InputText field gets focus too with the same value as in the InputFloat field!
Video demonstrating the issue and showing the code I'm using: https://youtu.be/DLK8VKl5IA0
Why is this happening? Pretty sure I'm missing something obvious...
Thanks
-vexe
EDIT: Interestingly, it's only the scale field that's buggy, the InputFloat3 for the position is working fine, (doesn't give focus to InputText)
The text was updated successfully, but these errors were encountered: