Re: Deprecated "Graphics" dropped
Emile SCHWARZ <[email protected]> Mon, 24 Dec 2018 04:12:03 +0100 (CET)
| Newsgroups | gmane.comp.lang.realbasic.user |
|---|---|
| Message-ID | <1885693894.1185839.1545621123693.JavaMail.open-xchange@opme11oxm21nd1.rouen.francetelecom.fr> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org=
/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns=3D"http://www.w3.org/1999/xhtml"><head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-8=
"/>
</head><body style=3D"font-family: arial,helvetica,sans-serif; font-size: =
13pt"><p>Read there:<br></p><p><br></p><p><a href=3D"https://blog.xojo.com/=
2018/12/06/updating-code-that-used-the-graphics-property/">https://blog.xoj=
o.com/2018/12/06/updating-code-that-used-the-graphics-property/</a></p><p>a=
nd<br></p><p>http://docs.xojo.com/UserGuide:Updating_Code_That_Used_the_Gra=
phics_Property</p><div><br></div>I searched these addresses earlier today, =
in vain. Now, you have them.<br><div><br><blockquote type=3D"cite"><p style=
=3D"font-family: Arial,Helvetica,sans-serif; font-size: 14px;"><strong styl=
e=3D"color: #000;">envoyé :</strong> <span style=3D"color: #666;">23 d=
écembre 2018 à 19:53</span><br><strong style=3D"color: #000;">de =
:</strong> <span style=3D"color: #666;">Jim McKay <[email protected]></=
span><br><strong style=3D"color: #000;">à :</strong> <span style=3D"co=
lor: #666;">Nug <nug-Ktk10zIkF/Jvqtv/[email protected]></span><br><strong style=3D"col=
or: #000;">objet :</strong> <span style=3D"color: #666;">Re: Deprecated =
4;Graphics" dropped</span></p><br><p>My solution is very simple. You ad=
d a module to your project (via the menu Insert->Module), call it ̶=
0;GraphicsBandaid” or whatever. Add a single method. Now your old cod=
e works, unmodified. I'm not understanding how that is complex.</p><p>A=
fter you've added the new method, calls to canvas1.graphics will simply=
be forwarded to canvas1.backdrop.graphics</p><p>The only <strong>real</str=
ong> solution is to rewrite your code to only access the graphics from insi=
de the paint event.</p><blockquote><p>On Dec 23, 2018, at 6:34 AM, Daniel D=
rijard <[email protected]> wrote:</p><p>I got later a new answ=
er from [email protected] who proposes something more complex to escape the pro=
blem, without solving it.</p></blockquote><img src=3D"https://u9098352.ct.s=
endgrid.net/wf/open?upn=3DW5IIOHYh8Ix-2FlmNrgtTomW8ATk7pXvOSwl3ev5ZofJfuZZK=
I5cbFbwPzsTV9GFKFDMzDNKKCZPf7uBT-2B9Epx7cVzgIs0J8ajdWqo-2BBljJzhPEmpVA4kM0p=
tia9u8PwoCmwy3XcAtBT6rFz7n-2F-2BU6jshMoiI37ktLzdmi0Be-2BsG7-2FzmNaoHMdkm3oH=
s92uoCxBMX9lwJCvOR8qG5EifSN0Dv6aNtGjoNTojkft4jPSto-3D" alt=3D"" style=3D"wi=
dth: 1px; height: 1px; border-width: 0; padding: 0; margin: 0;" width=3D"1"=
height=3D"1" border=3D"0"></blockquote><br> </div></body></html>