-
-
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
click on Inputtext no refreshing text #5054
Comments
Use static size for writable |
I suppose that #include "misc/cpp/imgui_stdlib.h"
[...]
ImGui::InputText("##textcameraname", &m_copy_name); |
I tried both suggested approaches, none of them worked :(
In this case, the inputtext only refresh if there's no focus on the ui element. What could be the main root of the issue? I could debug specific parts if you can point them out. |
implementing the #3290 workaround did the trick. |
Version/Branch of Dear ImGui:
Version: 1.73
Branch: XXX (master/viewport/docking/etc.)
OpenGL/ Visual studio 2019/
Back-ends: Custom engine
Operating System: Windows 10
I have a modal window that contains an input text field. Using the keyboard events from my custom engine, I update a char array that I linked to the the input text field. However, when I click on the input field (I guess to do focus on it), the input text field doesnt refresh from the data in my char array. If I click outside the input field (lose focus), the input refresh with the char array (check the gif below).
Any thoughts why this could be happening?
Screenshots/Video
The text was updated successfully, but these errors were encountered: