wxListCtrl in virtual mode: using icons possible?

Something like a thumbnail browser is indeed what I have in mind. When
you
use LC_VIRTUAL|LC_VRULES how do you set up the columns to not have all
thumbs at the same place. With my wxPython 2.4.2.4 all icons are
positioned at (0,0).

I'll try to clean up some code I've wrote and maybe post the darn thing
somewhere.
Anyways, Thomas, if you want my code just ask, is littered with bits of
code specific to the project I'm working on but.... hey... maybe you
could see past that. :smiley:

It would be nice if you could send it to me, so I can test it here to see
where the differences are.

[...]

Ok here they are :smiley:
I wanted to make one file out of them but... my laziness got the best of
me :smiley:
the files are tb.py (the thumbnail browser) and slide.py (support class
for slideshow )

[...]

for testing just run tb.py (it has a main thingy that creates a frame
and a thumbnail browser for the current directory ) the directory should
have some images (jpgs or pngs)

Hmm, I just tested it and I get only an empty frame when starting tb.py.
When I change ListCtrl style to wx.LC_VIRTUAL|wx.LC_VRULES|wx.LC_ICON I
see one thumbnail in the upper left corner and the other ones probably
hided directly under the visible one.

Which version of wxPython and Python itself do you use? Do you run Linux
or Windows? I'm using Python2.3, wxPython 2.4.2.4 on a Debian Linux System.

So it seems I have to stick with LC_REPORT as Robin said.

Thanks,

  Thomas

路路路

On Tue, 09 Mar 2004 11:34:25 +0200, Peter Damoc wrote:

On Tue, 09 Mar 2004 10:11:24 +0100, Thomas Geffert > <thg@users.sourceforge.net> wrote:

Oopsie... I guess the thing is FUBAR as it seams to be a platform issue. as my signature says I'm on Windows XP
and I do remember reading something about ListCtrl being implemented with platform specific ...
Sorry man... the alternative.... well.... you could take a look at cornice...
http://web.tiscali.it/agriggio/cornice.html
it was one of the stops in my way to implement the thumbnail browser... see how that is implemented, it is a little bit more difficult than my code BUT it claims to be cross-platform, and I susspect it is as the way it is implemented uses less of the wx and more of custom creation (manual positioning and such)
Good Luck.

P.S. You could try upgrading the wxPython to the cutting edge, maybe the thing is fixed in 2.5 altho... I doubt it.
Now I understand what Robin wanted to say.
It is very easy to have a narrow vision when working on only one platform.

路路路

On Tue, 09 Mar 2004 10:54:34 +0100, Thomas Geffert <thg@users.sourceforge.net> wrote:

Hmm, I just tested it and I get only an empty frame when starting tb.py.
When I change ListCtrl style to wx.LC_VIRTUAL|wx.LC_VRULES|wx.LC_ICON I
see one thumbnail in the upper left corner and the other ones probably
hided directly under the visible one.

Which version of wxPython and Python itself do you use? Do you run Linux
or Windows? I'm using Python2.3, wxPython 2.4.2.4 on a Debian Linux System.

So it seems I have to stick with LC_REPORT as Robin said.

Thanks,

  Thomas

--
Peter Damoc
Hacker Wannabe
Now: XP SP1, Python 2.3.3, wxPython 2.4.2.4 (2.5.1.0p7u via set PYHONPATH)