Hi, I've cc'd this to the mailing list -- please keep questions there so others can benefit from the answers.
http://mail.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas On Thu, May 8, 2014 at 3:42 AM, Farrukh <[email protected]> wrote: > 1- I am using "FloatCanvas.FloatCanvas(self.panel)" and when i > "self.canvas.Zoom(1.1)" or "self.canvas.Zoom(0.9)" all of my drawn shapes > disappear. > That _should_ work -- you might try calling FloatCanvas.Draw() to make sure it re-draws. If that doesn't work, something else is up. post a small example and we can figure it out. Also check out the Demos in the source: http://svn.wxwidgets.org/viewvc/wx/wxPython/3rdParty/FloatCanvas/Demos/ maybe one of them will show you what you need to do. > 2- "self.dc = wx.ClientDC(self.canvas)" works fine but i cant undo last > drawn shape, i have searched but couldn't implement anything, i tried > memorydc but nothing. > you shouldn't need to do anything by hand with the DC -- if you do, it's likely to get confused with what the Canvas is doing... > 3- i also need edit drawn shape after a while user feels to change any > shape in terms of color, line style line thickness, fill color. > you should be able to make any change, then call Draw() again, and the change should be reflected. See the example in the main demo, and some in that pile of small Demos. -Chris > if possible please can include these in a simple program so i can > understand better. I will be greatfull for your help. eagerly waiting for > reply. > > Farrukh > > --- > This email is free from viruses and malware because avast! Antivirus > protection is active. > http://www.avast.com > > -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [email protected]
_______________________________________________ FloatCanvas mailing list [email protected] http://mailman.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas
