New topic: totally confused.
<http://forums.realsoftware.com/viewtopic.php?t=41307> Page 1 of 1 [ 1 post ] Previous topic | Next topic AuthorMessagecomcents Post subject: totally confused.Posted: Fri Nov 04, 2011 9:27 am Joined: Mon Apr 11, 2011 12:42 am Posts: 25 Can anyone point me to some sample code for DrawInto? I'm totally confused by it. As a start I tried: "For example, add a second window to a new project and add a Canvas control to the second window. In the Paint event of the first window, put: Self.drawinto(dialog1.canvas1.Graphics,0,0) Did exactly that: New project - placed a TextField on window1. (TextField1.text = "Something"). Placed the above code in the Paint handler for Window1. Second window -> Dialog1 and placed a Canvas (Canvas1) on it. Run. App starts - then stops with the debugger showing: Window1.Event.Paint with this in the code window: Sub Paint(g As Graphics) Self.drawinto(dialog1.canvas1.Graphics,0,0) End Sub Window1 is opened - but blank. If I then click on the "Resume" arrow - TextField1 shows up on Window1 - but then immediately an error message shows saying: "An exception of class StackOverflowException was not handled. The application must shut down." Pretty frustrating when one does (I think) exactly what the documentation says - only to have the app crash with no idea (on my part) of why? Thanks for any pointers... Randy Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- 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]
