When I Set an ImageList on a ListCtrl on WinXP I get an unwanted space
or some 20 pixels before the first (String) item in the listctrl, space
for the image, I guess . This is not the case on GTK.
I need the images in later columns not in the first one. How do I stop
this behavior?
Paul
···
--
Paul Sijben tel: +31334566488
Eemvalley Technology BV fax: +31334557523
the Netherlands http://eemvalley.com
-----------------------------------------------------
EemValley Technology werft python & wxpython
programmeurs: http://www.eemvalley.nl/jobs
Hi Paul,
When I Set an ImageList on a ListCtrl on WinXP I get an unwanted space
or some 20 pixels before the first (String) item in the listctrl, space
for the image, I guess . This is not the case on GTK.
I need the images in later columns not in the first one. How do I stop
this behavior?
I don't think you can stop it, it is a Windows "feature": when you
assign an image list to a ListCtrl, the ListCtrl will automatically
and irreversibly assign a space for the icon in the first column, even
if you don't actually put any icon in the first column. The only
workaround I know of is to set the width of the first column to zero
and working with the second column as your first column.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
···
On Mon, Apr 21, 2008 at 4:27 PM, Paul Sijben wrote:
Andrea,
thanks for this input.
I'll go and curse Microsoft for the n-th time for making things so hard (and wasting my time in the process)
Paul
Andrea Gavana wrote:
···
Hi Paul,
On Mon, Apr 21, 2008 at 4:27 PM, Paul Sijben wrote:
When I Set an ImageList on a ListCtrl on WinXP I get an unwanted space
or some 20 pixels before the first (String) item in the listctrl, space
for the image, I guess . This is not the case on GTK.
I need the images in later columns not in the first one. How do I stop
this behavior?
I don't think you can stop it, it is a Windows "feature": when you
assign an image list to a ListCtrl, the ListCtrl will automatically
and irreversibly assign a space for the icon in the first column, even
if you don't actually put any icon in the first column. The only
workaround I know of is to set the width of the first column to zero
and working with the second column as your first column.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users