New topic: Changing structures to deal with deprecated graphics
<http://forums.realsoftware.com/viewtopic.php?t=47271> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message KWL Post subject: Changing structures to deal with deprecated graphicsPosted: Tue Mar 12, 2013 3:09 pm Joined: Thu Feb 21, 2013 3:59 pm Posts: 4 I have the following structure: A window, WIN1, containing a canvas, PAGE, which is utilized from several parts of a program to display results. For example: >From a control structure in a different window I create a page of text using PrintIt(WIN1.PAGE.graphics) >From a different control structure I print these same results using Dim p as PrinterSetUp Dim g as graphics Dim settings as string p = New PrinterSetup If p.PageSetupDialog then settings = p.setupstring g = OpenPrinterDialog(p) If g <> nil then PrintIt(g) end if PrintIt is a method containing code to display a formatted page of text. Analyze Project indicates PrintIt(WIN1.PAGE.graphics) should use paint So how do I alter these structures so that I can both display to WIN1.PAGE and also send to a printer. What I have works but.... Top Paul Lefebvre Post subject: Re: Changing structures to deal with deprecated graphicsPosted: Tue Mar 12, 2013 3:29 pm Site Admin Joined: Fri Sep 30, 2005 9:35 am Posts: 916 Location: South Portland, Maine Call PrintIt(g) from the PAGE.Paint event handler. PrintIt can continue to do your drawing and you'll be just fine. _________________ Paul Lefebvre Developer Evangelist Real Software, Inc. The Real Studio Developer Conference is back: April 23rd-26th, 2013 in Orlando, FL. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
