-
First of all, I just started to use this package, and I'm really digging it. The problem I'm having is with InputText. If I select multiple characters from the InputText (either by using the mouse or with shift + arrow keys) and then delete the selection (using backspace or delete), the GUI will properly show the remaining string, but internally, the character array is only ever shorted by one. So in the following, if the user highlights and then deletes "abc" from the original "abcdefghi" string, the GUI shows "defghi", but the value of the user_text variable becomes "defghihi".
As a workaround, is there maybe some way that I can extract the text that's being correctly rendered on screen? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That's just an example. In a real-world project, you should use structs for state management. Basically, you could use a char array as a container for storing the string and an integer for recording the length of the current string. |
Beta Was this translation helpful? Give feedback.
That's just an example. In a real-world project, you should use structs for state management. Basically, you could use a char array as a container for storing the string and an integer for recording the length of the current string.