friend, When I dragged the colume, how to make the whole wxListCtrl not big, just the current colume bigger, next to the colume smaller?
Thanks
How to fix the wxListctrl right position
Re: How to fix the wxListctrl right position
That's the default behavior, resizing a column should never resize the outer frame. Where do you see that behavior?
Use the source, Luke!
Re: How to fix the wxListctrl right position
On the mail client (foxmail), this requirement is this: colume1 & colume2 total width unchanged, if dragged colume1 larger, then colume2 should become smaller, and vice versa is the same. what should I do
Thank you
Thank you
Re: How to fix the wxListctrl right position
Sorry, the word is wrong, 'colume' should be changed to 'column'
Re: How to fix the wxListctrl right position
Unfortunately there is no easy way to do this, like just setting a flag.
In order to achieve that, you'd have to keep track of the width of the currently dragged column and change the width of the adjacent column accordingly.
E.g. if column 0 is made four pixels wider, you'll have to make the width of column 1 four pixels smaller.
In order to achieve that, you'd have to keep track of the width of the currently dragged column and change the width of the adjacent column accordingly.
E.g. if column 0 is made four pixels wider, you'll have to make the width of column 1 four pixels smaller.
Use the source, Luke!