-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Recommendation for a scrollable list of InputText() fields ? #1871
Comments
I found BeginChild()/EndChild(), all good. Leaving here for possible future reference. ...though I still can't seem to get the ImGui::SetKeyboardFocusHere() to seem to work properly if the item desired is not visibly present in the child window area. The right item is having the SetKeyboardFocusHere() set before it, but instead the focus goes to the top of the currently visible window. Not yet sure where the flaw is in my own code. |
Yes there is currently an issue because the action for Some possible temporary workaround:
Note of those are very pleasant work-around but they should help in the meanwhile. I will be working on new functions to solve this properly later. |
Thanks @ocornut . I did end up working my way around it using your first suggestion about an hour ago (scroll first, then set the keyboard focus). It's working well enough now for me to get on with the task at hand since it's just an internal build for me. Looking forward to seeing how you end up resolving it, best of luck, and thanks for taking the time to reply. |
[edit: Found BeginChild()/EndChild() ]
Originally I was going to post about a problem I was having about InputText() not scrolling correctly in to view within my Listbox() when I realise that's not probably how it should have even been constructed ( the software has two modes, standard, and "editing", and in standard I'm using Selectable(), but when in editing I change to InputText(), so that's how the mistake happened ).
As such, I'm curious, what would be a preferred technique for having a scrollable list of InputText() entries ( in picture, the right hand column, with blue highlighted $$$178 field, all these are InputText()).
The text was updated successfully, but these errors were encountered: