[Image-SIG] drag/move image from staticBitmap control

Michele Petrazzo michele.petrazzo at unipex.it
Wed Nov 9 18:44:22 CET 2005


James HU wrote:
> Hi, Michele,
> 
> I use your ImgView as scrollwindow embedded on my panel, which also
> has some controls like checkbox, and some buttons. It looks like I
> almost there, the image is there, I can see it on the small window in
> panel! but the scroll on horizontal or vertical is not there.
> 
> attached is my test codes, if you got time, is it possible to help me
> a little more?
> 


add this line: self.scrolledWindow1.Zoom(+0)
after self.scrolledWindow1.SetImage('imgtest.jpg')

and delete this line in imgview
self.GetParent().SetStatusText( str(zoom_percent) + "%" )
and enjoy!

P.s. You code didn't work because there are some problems at
scrolledwindows1 definition. This seen to work:
self.scrolledWindow1 = ImgView(parent=self, pos=wx.Point(256, 96),
               size=wx.Size(320,280))

P.s.2: Please use the default "channels" (mailing list), so other users
can read and enjoy with this modifies/code

> I really appreciate your help!
> 
> James


Bye,
Michele


More information about the Image-SIG mailing list