Thumbnail control and wxImageList limits

Milan Babuskov milanb at panonnet.net
Thu Feb 15 10:52:15 PST 2007


Hello,

I'm looking for a control that is able to show multiple image (jpg, png) 
thumbnails in a kind of a grid. Image are all same sizes (at least one 
of dimensions is the same) and the control should automatically create 
rows/columns depending on how much space is available to it. Also, it 
should be able to detect clicks on each image.

I was thinking to maybe use wxHTML, but I have two problems: one is that 
I'm not sure how to handle rows/columns, as HTML table would have to 
have a fixed number of columns. The second problem is that images are 
not files stored on disk, but files that come from the database.

The other alternative is to create a custom control that paints (via 
wxDC) itself and does exactly what I want it to. Does anyone know if 
such control already exists, so I don't have to write it from scratch?


As for control's interface, I think it could accept wxImageList and 
render all the images it finds there. Is wxImageList suitable for 
storing thousand or more images? All images would be about 200x200 pixels.

TIA

-- 
Milan Babuskov
http://www.guacosoft.com





More information about the wx-users mailing list