-
-
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
Modifying text contents of active InputText #3878
Comments
Would #2890 solve your problem?
Have you considered modifying the buffer inside the InputText callback, by using
I think this is a XY Problem. We don't need to make all internals public, but you may need to figure a path for your language bindings (generated or not) to allow you to access internals when needed. |
I understand the proposal is to extend
Indeed this is what I've currently implemented, but this feels quite awkward for my use case since I'm not interested in the entered characters in the first place.
:) I was not familiar with that term, but it also was my understanding. I really want to have a |
I have a use case where I want to be able to modify the currently active
InputText
. You already proposed a workaround in #3290, callingClearActiveID()
(see workaround 2 below), which I think is sort of a counterpart toSetKeyboardFocusHere()
.I also came up with another (ugly) workaround, just blinking a temporary
InputText
for the sake of switching the focus (see workaround 1 below).I know either is currently necessary since you internally buffer the text in
InputText
, but nevertheless they both feel like workarounds to me. What do you think about adding an internaldirty
flag toTextBuffer
(comparable to the ones you have for theInputText
callbacks anyway), which would be set by anyTextBuffer
modification and consumed on the nextInputText
rendering..? This might be more intuitive to use and also match better the stateless GUI philosophy.If this is not an option to you - would you consider making the
ClearActiveID()
public (since it's on the same level asSetKeyboardFocusHere()
, which is public)? :)(Crystal again, sorry)
The text was updated successfully, but these errors were encountered: