If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
I just skimmed through the post, but where is the bug? According to the screenshot, there is no reason to display scrollbars, all the columns are fully displayed (fit to the control's width), the value of the last one being ellipsized (you can see the right border of the last column)? The horizontal scrollbar logically appears only when necessary, i.e., the sum of columns' widths < the control's width, this is not the case in the screenshot.
You can see that the scrollbar appear when you pass a long width when appending a column:
PB wrote:The horizontal scrollbar logically appears only when necessary, i.e., the sum of columns' widths < the control's width, this is not the case in the screenshot.
When the sum of columns' width is not enough, still no horizontal scrollbar.
original
Capture1.PNG
after resizing manually
Capture2.PNG
You do not have the required permissions to view the files attached to this post.
Last edited by Ronald on Sat Feb 09, 2019 8:20 am, edited 1 time in total.
EDIT
The width of the column is not the same as the width of the strings displayed in the column header or rows. You can see whether the column is fully displayed when you see the line of the right border of its head. If you need a different column width you need to adjust it.
Last edited by PB on Sat Feb 09, 2019 8:19 am, edited 1 time in total.
PB wrote:
The width of the column is not the same as the width of the strings displayed in the column header or rows. You can see whether the column is fully displayed when you see the line of the right border of its head. If you need a different column width you need to adjust it.
In my last, the first image shows that the total wxDataViewCtrl shows as expected, but when I resize the frame, the horizontal scrollbar doesn't show until the last-1 col (titled "ddd") has not enough space to show.
BTW, I'm trying the master commit of git repository.