feat: Added horizontal scroll bar for hex edit #2162
+73
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Overview
I have implemented a horizontal scrollbar for the hex editor, which allows displaying columns that are outside the window when there are multiple columns. It also supports address jumping and displays the corresponding column.
Implementation description
I control the content display in the Byte Column by recording the offset value of the horizontal scrollbar.
Screenshots
Additional things
As you can see, there is currently a flickering issue in the ASCII column when scrolling to the left. I found that disabling the
ImGuiTableFlags_SizingFixedFitflag resolves this issue. However, I noticed that when adding columns, the flickering does not occur, which is quite confusing. I have tried to analyze this but haven't made any progress. If you have any insights or suggestions, please let me know.