August 23rd, 2004, 06:02 AM
image not showing in wxScrolledWindow
I need to show some icons on a scrolled window, when the user double-clicks on it. It works fine when I click in the surface that is normally view without the scrolling, but it does not show up when I put it at a coordinate that is accessible only after scrolling.
I can not see the icon, although the image object can be accessed. How can I make it visible ?
def OnScrolledWindow1LeftDclick(self, event):
png = wxImage(self.opj(cale), wxBITMAP_TYPE_PNG).ConvertToBitmap()
r=wxStaticBitmap(self.scrolledWindow1, -1, png, wxPoint(x,y),wxSize(png.GetWidth(), png.GetHeight()))