Is there a way to make the last column in a report-style wxListCtrl stretch to take up the remaining width of the control?
David
Is there a way to make the last column in a report-style wxListCtrl stretch to take up the remaining width of the control?
David
You bet. In the mixins area there is a listctrl.py which contains the
following class wxListCtrlAutoWidthMixin which does what you want. There
are a couple of issues with the current version in 2.3.3.1 that I
provided a patch for -- ask Robin if and when that is going to be
integrated? Perhaps 2.4? If not, I can send you what I have.
On Fri, 2002-10-25 at 09:16, David C. Fox wrote:
Is there a way to make the last column in a report-style wxListCtrl
stretch to take up the remaining width of the control?David
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users
--
Anthony Tuininga
anthony@computronix.com
Computronix
Distinctive Software. Real People.
Suite 200, 10216 - 124 Street NW
Edmonton, AB, Canada T5N 4A3
Phone: (780) 454-3700
Fax: (780) 454-3838
Anthony Tuininga wrote:
You bet. In the mixins area there is a listctrl.py which contains the
following class wxListCtrlAutoWidthMixin which does what you want. There
are a couple of issues with the current version in 2.3.3.1 that I
provided a patch for -- ask Robin if and when that is going to be
integrated? Perhaps 2.4? If not, I can send you what I have.
Thanks. Please send me a copy.
Also, do you know if will work with 2.3.2?
On Fri, 2002-10-25 at 09:16, David C. Fox wrote:
Is there a way to make the last column in a report-style wxListCtrl stretch to take up the remaining width of the control?
David
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users
Anthony Tuininga wrote:
> You bet. In the mixins area there is a listctrl.py which contains the
> following class wxListCtrlAutoWidthMixin which does what you want. There
> are a couple of issues with the current version in 2.3.3.1 that I
> provided a patch for -- ask Robin if and when that is going to be
> integrated? Perhaps 2.4? If not, I can send you what I have.Thanks. Please send me a copy.
Attached. Its small enough that it shouldn't be a problem posting to the
list, right? This is a patch against 2.3.3 -- I don't know if this mixin
was included in 2.3.2 or not but if not, let me know and I'll send you
the full version.
Also, do you know if will work with 2.3.2?
It should. But I can't say for sure as I upgraded to 2.3.3 around the
same time...
listctrl_patch.diff (3.77 KB)
On Fri, 2002-10-25 at 11:02, David C. Fox wrote:
> On Fri, 2002-10-25 at 09:16, David C. Fox wrote:
>
>>Is there a way to make the last column in a report-style wxListCtrl
>>stretch to take up the remaining width of the control?
>>
>>David
>>
>>
>>_______________________________________________
>>wxpython-users mailing list
>>wxpython-users@lists.wxwindows.org
>>http://lists.wxwindows.org/mailman/listinfo/wxpython-users
>>_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users
--
Anthony Tuininga
anthony@computronix.com
Computronix
Distinctive Software. Real People.
Suite 200, 10216 - 124 Street NW
Edmonton, AB, Canada T5N 4A3
Phone: (780) 454-3700
Fax: (780) 454-3838
Anthony Tuininga wrote:
>
>> Anthony Tuininga wrote:
>>
>>> You bet. In the mixins area there is a listctrl.py which contains
>>> the following class wxListCtrlAutoWidthMixin which does what you
>>> want. There are a couple of issues with the current version in
>>> 2.3.3.1 that I provided a patch for -- ask Robin if and when that
>>> is going to be integrated? Perhaps 2.4? If not, I can send you
>>> what I have.
>>
>> Thanks. Please send me a copy.
>
> Attached.
I made a couple more changes along with your patch. YOu can get the
latest from CVS here:
http://cvs.wxwindows.org/viewcvs.cgi/wxPython/wxPython/lib/mixins/listctrl.py?rev=1.7.2.1&only_with_tag=WX_2_4_BRANCH&content-type=text/vnd.viewcvs-markup
> Its small enough that it shouldn't be a problem posting to the list,
> right? This is a patch against 2.3.3 -- I don't know if this mixin
> was included in 2.3.2 or not but if not, let me know and I'll send
> you the full version.
>
>> Also, do you know if will work with 2.3.2?
I don't think it was in 2.3.2, but the version before your patch (1.7)
will probably work there. (After your patch it's using wxCallAfter
which was added in 2.3.3.)
On Fri, 2002-10-25 at 11:02, David C. Fox wrote:
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!