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
The problem is that many lists have a selection and it is common to make this selection visible when the list is displayed. Unfortunately, I haven't found a way so far to do this programmatically. Ideally, I'd like to center my selection in the visible listbox
Your request
A way to programmatically scroll to the nth-row in a TableWidget, either with a semantics that this row n is centered in the display or such that row n is the topmost row in the display. Suggested API: ScrollToRow(n int)
Alternative solution
I've read up on imgui and found that there are some ways to set scroll positions X and Y, but so far my attempts to change the scroll position in a TableWidget have just resulted in program crashes. No workaround known to me at this time.
Additional context
No response
The text was updated successfully, but these errors were encountered:
meh, I see the problemm. you need to use native imgui's implementation of table (imgui.BeginTable/imgui.EndTable) because you need to add your own scroll handling before imgui.EndTable call.
It is how I got that imgui.GetScrollY (and probably SetScrollY) working.
Related problem
The problem is that many lists have a selection and it is common to make this selection visible when the list is displayed. Unfortunately, I haven't found a way so far to do this programmatically. Ideally, I'd like to center my selection in the visible listbox
Your request
A way to programmatically scroll to the nth-row in a TableWidget, either with a semantics that this row n is centered in the display or such that row n is the topmost row in the display. Suggested API:
ScrollToRow(n int)
Alternative solution
I've read up on imgui and found that there are some ways to set scroll positions X and Y, but so far my attempts to change the scroll position in a TableWidget have just resulted in program crashes. No workaround known to me at this time.
Additional context
No response
The text was updated successfully, but these errors were encountered: