Re: Fwd: Deprecated "Graphics" dropped
donJ <[email protected]> Sun, 23 Dec 2018 10:04:10 -0600
| Newsgroups | gmane.comp.lang.realbasic.user |
|---|---|
| Message-ID | <[email protected]> |
On 12/23/2018 07:34 AM, Daniel Drijard wrote: > Hello, > > I have sent a request for help on 22/12/2018 (copied). I got > answers from James Wagner and Keith DeLong and thanked them that I was > still not able to solve my problem which is due to the dropping of > “Graphics” in version 3. I got later a new answer from [email protected] > <mailto:[email protected]> who proposes something more complex to escape > the problem, without solving it. This is not what I look for. > I have an easy solution: keep using XOJO version 2, and > consequently not renewing my license with XOJO, which is not a > constructive action. > There is maybe a smarter solution: myself paying somebody to > correct my code. I hope somebody in the XOJO team can translate the > old code conventions into the new ones. This is unfortunately far from > being evident for a plain user as I am. I suspect that somebody in the > XOJO team could be interested by this deal. > > I wait for a positive answer. > > Cordially, > Daniel > > Hi Daniel, I also am unable to upgrade because of bugs in the newer versions, so I can't test this in Xojo 2018. But Jon Ogden's second solution is what I have done a few times. If you add a picture property (myPic) to a window or a module and then do three things to your code: 1) Every time you change the szie of the canvas, change the picture size to match. 2) Every place that you have "me.Graphics", change it to "MyPic.Graphics" 3) in the paint event of the canvas, put g.DrawPicture(MyPic, 0, 0) Good luck, Don