Graphic Problem

  1. 6 days ago

    Has there been a change in how .graphics works?

    This used to work but now it doesn't:

    -image-

    I've create a doc topic for this since it has been coming up fairly often:

    http://docs.xojo.com/UserGuide:Updating_Code_That_Used_the_Graphics_Property

  2. Martin T

    Dec 6 Pre-Release Testers Germany

    Replace Me.Graphics in the Paint-Event with g.

    Windows.Graphics and Canvas.Graphics were deprecated a long time and removed in 2018.3.

  3. Tim P

    Dec 6 Pre-Release Testers feedback://46303

    You can't draw into a graphics object for a Window or Canvas as of 2018r3. You may only draw in the Paint event, using the Graphics context provided. What this has revealed is a flaw in the original code.

    In this instance here, you can simply change me.graphics to g (the Graphics context provided in the Paint event)

  4. Paul L

    Dec 6 Xojo Inc Answer http://docs.xojo.com

    I've create a doc topic for this since it has been coming up fairly often:

    http://docs.xojo.com/UserGuide:Updating_Code_That_Used_the_Graphics_Property

  5. 5 days ago

    Thanks everyone! Problem solved.

or Sign Up to reply!