I would like to know if there is any way to prevent the following
behaviour of a wx.ListCtrl:
When double clicking on the border of the header of a column, the
column gets automatically resized to the minimum with of cells of that
column.
I cannot find any event controlling this.
Any hint?
This is a feature of the native widget on Windows and wx doesn't control it at all. There may be a way to turn it off using the native API, but I'm not familiar with the details.
This is a feature of the native widget on Windows and wx doesn't control
it at all. There may be a way to turn it off using the native API, but
I'm not familiar with the details.
--
Robin Dunn
Software Craftsmanhttp://wxPython.org
Hi everyone.
I have the same problem with the same control.
So, according to what Robin wrote, without using the native API, we do
not have any chance neither to control or to block that event at all?
It's a big mess if you want your listctrl columns not to be resized at
all.. or is there another way?
> I would like to know if there is any way to prevent the following
> behaviour of a wx.ListCtrl:
> When double clicking on the border of the header of a column, the
> column gets automatically resized to the minimum with of cells of that
> column.
> I cannot find any event controlling this.
> Any hint?
This is a feature of the native widget on Windows and wx doesn't control
it at all. There may be a way to turn it off using the native API, but
I'm not familiar with the details.
--
Robin Dunn
Software Craftsmanhttp://wxPython.org
If it's a feature, then the OP should check out Andrea's
UltimateListCtrl. It's written in pure Python (I think), so it should
be pretty hackable:
As I recall, someone else on the list had a different implementation
in pure Python, but I can't remember what it was. And no,
ObjectListView isn't it since that's just a really cool wrapper for
the standard listctrl.
Mike
···
On Jul 7, 8:02 pm, Robin Dunn <ro...@alldunn.com> wrote:
Robin said there may be a way to change that "feature", but he didn't
know. Ask on the wx-dev list and see if they do. Or use one of the
generic ListCtrl widgets instead, like the one I mentioned in my other
post.
Mike
···
On Jul 8, 3:29 am, Hades <istintocontra...@hotmail.com> wrote:
> This is a feature of the native widget on Windows and wx doesn't control
> it at all. There may be a way to turn it off using the native API, but
> I'm not familiar with the details.
> --
> Robin Dunn
> Software Craftsmanhttp://wxPython.org
Hi everyone.
I have the same problem with the same control.
So, according to what Robin wrote, without using the native API, we do
not have any chance neither to control or to block that event at all?
It's a big mess if you want your listctrl columns not to be resized at
all.. or is there another way?