New topic: App.OpenDoc~control array
<http://forums.realsoftware.com/viewtopic.php?t=40260> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message bernard Post subject: App.OpenDoc~control arrayPosted: Sat Aug 13, 2011 4:30 pm Joined: Sat Oct 27, 2007 8:21 am Posts: 29 Using RB2009 in WindowsXP Can anyone please explain:- I start an app with a single window. On the window I place an EditField(0) initiated as an array. New EditFields can be added to the array during run time. The state of the user's window is filed and can be opened without difficulty, the array being rebuilt, the size of the array and the positions of each member having been filed. The problem is when I try to open via App.OpenDocument. An error message states that the control is private to the window in spite of its Scope being Public. Is this expected? Is there a simple way round it? Top Jym Post subject: Re: App.OpenDoc~control arrayPosted: Sat Aug 13, 2011 5:33 pm Joined: Sat Oct 01, 2005 5:19 pm Posts: 2528 Then you would need to do it from the Window. Sounds like it's guessing the window hasn't been 'opened' yet because it's in the App Event (if that makes sense, it does in my head) So send the Doc to the constructor of the window to be loaded. Top bernard Post subject: Re: App.OpenDoc~control arrayPosted: Sun Aug 14, 2011 3:07 am Joined: Sat Oct 27, 2007 8:21 am Posts: 29 Thanks Jym, that makes sense. I think I have tried something on that basis which didn't work but since you confirm the theory I'll try again. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 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]
