New topic: dynamically add controls to a window?
<http://forums.realsoftware.com/viewtopic.php?t=38200> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message BrianOBrien Post subject: dynamically add controls to a window?Posted: Fri Mar 18, 2011 9:53 pm Joined: Wed Jul 07, 2010 2:55 pm Posts: 231 Location: University Of Calgary, Faculty Of Medicine I have an array of strings. I want to put up a label and a text field or combobox for each of the elements of the string array. If there are enough strings in the array I can see this control needing a vertical scroll bar to see those controls that are off of the the window (if you know what i mean) So maybe this is doable with a listbox? Then the first column of the listbox is the label and the second column is either a text field, check box or combobox. Help? _________________ If at first you don't succeed... Try REALBasic. Top mjh Post subject: Re: dynamically add controls to a window?Posted: Sat Mar 19, 2011 5:26 am Joined: Sun Feb 19, 2006 3:10 pm Posts: 1148 Location: Hamburg, Germany http://docs.realsoftware.com/index.php/UsersGuide:Chapter_5:Creating_New_Instances_of_Controls_On_The_Fly _________________ Michael J. HuÃmann http://digicam-experts.de Top jefftullin Post subject: Re: dynamically add controls to a window?Posted: Sat Mar 19, 2011 5:46 am Joined: Wed Nov 15, 2006 3:50 pm Posts: 2204 Location: England A listbox is the right answer, IMO The standard listbox has a built-in checkbox option anyway. For true combobox, not so easy, but if you are presenting a drop-down list, you can do it by popping up a menu when the user clicks in the relevant cell 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]
