Re: Deprecated "Graphics" dropped
Jim McKay <[email protected]> Sun, 23 Dec 2018 18:53:04 +0000 (UTC)
| Newsgroups | gmane.comp.lang.realbasic.user |
|---|---|
| Message-ID | <[email protected]> |
------------=_1545591184-20142-691 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable My solution is very simple. You add a module to your project (via the menu = Insert->Module), call it "GraphicsBandaid" or whatever. Add a single method= . Now your old code works, unmodified. I'm not understanding how that is co= mplex. After you've added the new method, calls to canvas1.graphics will simply be= forwarded to canvas1.backdrop.graphics The only *real* solution is to rewrite your code to only access the graphic= s from inside the paint event. > On Dec 23, 2018, at 6:34 AM, Daniel Drijard <[email protected]> wrot= e: >=20 > I got later a new answer from [email protected] who proposes something more c= omplex to escape the problem, without solving it. ------------=_1545591184-20142-691 Content-Type: text/html; charset="us-ascii" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable <html><body> <p>My solution is very simple. You add a module to your project (via the me= nu Insert->Module), call it “GraphicsBandaid” or whatever. A= dd a single method. Now your old code works, unmodified. I'm not understand= ing how that is complex.</p> <p>After you've added the new method, calls to canvas1.graphics will simply= be forwarded to canvas1.backdrop.graphics</p> <p>The only <strong>real</strong> solution is to rewrite your code to only = access the graphics from inside the paint event.</p> <blockquote><p>On Dec 23, 2018, at 6:34 AM, Daniel Drijard <daniel.drija= [email protected]> wrote:</p> <p>I got later a new answer from [email protected] who proposes something more = complex to escape the problem, without solving it.</p></blockquote> <img src=3D"https://u9098352.ct.sendgrid.net/wf/open?upn=3DW5IIOHYh8Ix-2Flm= NrgtTomW8ATk7pXvOSwl3ev5ZofJfuZZKI5cbFbwPzsTV9GFKFDMzDNKKCZPf7uBT-2B9Epx7cV= zgIs0J8ajdWqo-2BBljJzhPEmpVA4kM0ptia9u8PwoCmwy3XcAtBT6rFz7n-2F-2BU6jshMoiI3= 7ktLzdmi0Be-2BsG7-2FzmNaoHMdkm3oHs92uoCxBMX9lwJCvOR8qG5EifSN0Dv6aNtGjoNTojk= ft4jPSto-3D" alt=3D"" width=3D"1" height=3D"1" border=3D"0" style=3D"height= :1px !important;width:1px !important;border-width:0 !important;margin-top:0= !important;margin-bottom:0 !important;margin-right:0 !important;margin-lef= t:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding= -right:0 !important;padding-left:0 !important;"/> </body></html> ------------=_1545591184-20142-691--