On Jan 28, 2014, at 12:11 PM, Nouvelle Collection <
[email protected]> wrote:

I suspect that the maximize is triggering the size event before the window
> is actually te-sized.

No, I just checked : when I maximize, "EVT_SIZE" is fired, and
     def OnSize(self, event):
          print self.Canvas.GetSize()
gives the good maximized size.
But for an unknown reason         self.Canvas.ZoomToBB()    doesn't zoom
like it should.

Do you notice the same thing on your platform? (


Can't check right now, but it may be that ZoomToBB is getting called before
the size event can be propagated down, do the size it uses is not right.

If this is the case, then calling it from wx.CallAfter() should fix it:

-Chris


with the code you sent me ScaledBitmap2Demo.py)



> Hopefully when EVT_MAXIMIZE fires, the window will report the current
> size. So catching that should take care of it.

I tried with  EVT_MAXIMIZE,  and the result is the same.

See you later!
Jo


_______________________________________________
FloatCanvas mailing list
[email protected]
http://mailman.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mailman.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to