I'm displaying images in a grid control. The images are stored as files and there is a field that contains the fully qualified path to the image file (jpg). I set the custom renderer for the column to the ImageRenderer. It works great and really fast. The only issue I have is the images are really large so it displays only a portion of the image. Is there a way to set the ImageRenderer to fit the image instead of clipping it?
I'm working in an Appwizard generated application and I'm modifying the grid used to browse the query results. Here's the code I'm using to display the image. This is the 5th column in the grid. self.addColumn(dabo.ui.dColumn(self, DataField="ImageFullPath", Caption=biz.getColCaption("ImageFullPath"), Sortable=True, Searchable=True, Editable=False)) colImage = self.Columns[4] colImage.CustomRendererClass = dabo.ui.gridRenderers.ImageRenderer I tried creating a child of the ImageRenderer class code is below. When I used it there was no difference. class CustImageRenderer(dabo.ui.gridRenderers.ImageRenderer): def GetBestSize(self, grid, attr, dc, row, col): return wx.Size(10, 10) Thanks, Matt -- Matt Jackson --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: Dabo-users@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/cakssvxmsyvcgyngqr0uzj+lqzph5pgcr12ixf-nun13vmbx...@mail.gmail.com