How to make the last column of wxDataViewCtrl not to fill all the remaining spaces? Topic is solved

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.
Post Reply
Ronald
Super wx Problem Solver
Super wx Problem Solver
Posts: 306
Joined: Mon Mar 05, 2018 4:17 am

How to make the last column of wxDataViewCtrl not to fill all the remaining spaces?

Post by Ronald »

OS: Windows
wx: 3.1.5

For the last column contains numbers for contents and right aligned,
if the width is too large, it doesn't look good.
User avatar
doublemax@work
Super wx Problem Solver
Super wx Problem Solver
Posts: 470
Joined: Wed Jul 29, 2020 6:06 pm
Location: NRW, Germany

Re: How to make the last column of wxDataViewCtrl not to fill all the remaining spaces?

Post by doublemax@work »

How about adding another, empty column? I can't think of any other way.
Ronald
Super wx Problem Solver
Super wx Problem Solver
Posts: 306
Joined: Mon Mar 05, 2018 4:17 am

Re: How to make the last column of wxDataViewCtrl not to fill all the remaining spaces?

Post by Ronald »

doublemax@work wrote: Mon Oct 18, 2021 11:49 am How about adding another, empty column? I can't think of any other way.
It's ok.

BTW, last column auto expanding is inspired by gtk3, I hope this solution for fixed width of the last column is by the design of gtk3, or else I think unctronollable width of a column is not a good desgin.
Post Reply