New topic: Embedded Container Controls to Window
<http://forums.realsoftware.com/viewtopic.php?t=46334> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message YannisBxv Post subject: Embedded Container Controls to WindowPosted: Mon Dec 24, 2012 4:11 am Joined: Tue Mar 20, 2012 3:57 am Posts: 2 Location: Athens - Greece First of all my best wishes for Christmas, I am working on a project that receives data from sensors via serial/UDP and presents these data in custom gauges. Each Gauge is a Container Control. In the parent window i can add new Gauges, set the desired parameters for each one, move them arount the screen and finaly get the graphical presentation of data. To add a new gauge s = new Gauge_B s.EmbedWithin(self,50,50) I have to save the details of each one like location of Gauge (X,Y), scale used etc in order to load during startup the desired Gauge setup. Since all Gauges are "embeddedWindowControl" i can get only the control.name Is it possible to get access to embeddedWindowControl class ? Many thanks in advance YannisBxv Top Goofie Post subject: Re: Embedded Container Controls to WindowPosted: Mon Dec 24, 2012 5:28 am Joined: Tue Nov 13, 2007 11:48 am Posts: 181 Location: Belgium Hi Yannis, I'm not sure if i understand your question, so forgive me if my answer is not "to the point" Do you need a way to access a containercontrol on a pagepanel after you have instantiated it? I do so for my projects by (1) adding a property for each containercontrol i want to attribute to a mainWindow/pagepanel and (2) building a general accessible dictionary at startup to which i can refer... myPositions=new dictionary ' my first container control on the window GaugeRed=new GaugecontainerClass GaugeRed.embedwithinPanel(pagepanel1,0,0,0) myPositions.value("GaugeRed")=some value i can easily retain... GaugeBlue=new GaugecontainerClass GaugeBlue.embedwithinPanel(pagepanel1,0,0,0) myPositions.value("GaugeBlue")=some value i can easily retain... .. Merry Xmas 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]
