You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I figure out that all text edit in ImGui are sharing the same ImGuiTextEditState, which "undo/redo" history records are stored in. Just wondering is it possible to have separated states for different text edits? Because I'm making a software that users may have more than one text edits at a time, when switching focus from one another, the old one losts all its history. Text edits are used to edit long text, so that's not user friendly when got important data lost.
It would be nice to have, or it's also fine if I could maintain and pass separated ImGuiTextEditStates for different text edits manually.
The text was updated successfully, but these errors were encountered:
I agree this is desirable. I will eventually refactor the code toward that but there are a lots of subtle design and features decisions to nail related to persistence and ownership (see e.g. #1506). And generally there was a lots of things to work on with InputText (e.g.
inputtext
and some more). What will probably happens is that I will batch them up when I get to focus on InputText, and that's probably not this month unfortunately.
Thanks for the quick reply, and all your efforts on this project. I fully understand that you maybe the only dedicated developer on ImGui, so go ahead do what's on your priority list. I'm already happy to know it's on it.
Hi,
I figure out that all text edit in ImGui are sharing the same
ImGuiTextEditState
, which "undo/redo" history records are stored in. Just wondering is it possible to have separated states for different text edits? Because I'm making a software that users may have more than one text edits at a time, when switching focus from one another, the old one losts all its history. Text edits are used to edit long text, so that's not user friendly when got important data lost.It would be nice to have, or it's also fine if I could maintain and pass separated
ImGuiTextEditState
s for different text edits manually.The text was updated successfully, but these errors were encountered: