New topic: How to place one object in front of another in a window?
<http://forums.realsoftware.com/viewtopic.php?t=47686> Page 1 of 1 [ 5 posts ] Previous topic | Next topic Author Message tseyfarth Post subject: How to place one object in front of another in a window?Posted: Wed Apr 24, 2013 12:20 am Joined: Sat Dec 04, 2010 9:14 pm Posts: 897 Hello All, Is there a way to set one object in front of another? Similar to using z? Much appreciated, Tim Top timhare Post subject: Re: How to place one object in front of another in a window?Posted: Wed Apr 24, 2013 2:33 am Joined: Fri Jan 06, 2006 3:21 pm Posts: 12262 Location: Portland, OR USA You cannot change the z-order of controls directly. But you can remove a control and add it back. The most recently added control is on top. Top wbgookin Post subject: Re: How to place one object in front of another in a window?Posted: Wed Apr 24, 2013 6:25 am Joined: Sat Aug 22, 2009 9:44 am Posts: 311 Actually, there are little icons in the toolbar at the top of the window designer (not the main toolbar, the toolbar below the tabs) that say "Forward," "Front," "Backward," and "Back." You can use these to change the z-order. I'm not aware of a way to do this at run time, however. As a side note, there have been many cautions on the forums/mailing lists about not overlapping controls due to bleed-through issues. I haven't seen this with anything other than listboxes, but you may want to think about other solutions. Bill Top DaveS Post subject: Re: How to place one object in front of another in a window?Posted: Wed Apr 24, 2013 9:01 am Joined: Sun Aug 05, 2007 10:46 am Posts: 4807 Location: San Diego, CA If your intent is to have Control A "cover" Control B during part of the program, so Control B can't be seen, and then switch them later so the B is on top and is hiding A... just toggle the VISIBLE property. If the controls you are talking about are CANVAS and you are changing a "picture" by sliding them around..... Rethink your approach and use a SINGLE canvas, and DRAWPICTURE instead. _________________ Dave Sisemore iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1 Note : I am not interested in any solutions that involve custom Plug-ins of any kind Top tseyfarth Post subject: Re: How to place one object in front of another in a window?Posted: Wed Apr 24, 2013 10:47 pm Joined: Sat Dec 04, 2010 9:14 pm Posts: 897 Hello All, and thank you for your responses! I saw the bleed, that was one reason to try to adjust the Z. In my case, the user can relocate the objects during run time, as well as resize them. So at run, one can overlap the other(s). Further, it may be desirable for the user to have them over lapped, but without any bleed through. So maybe you all can see why other objects too, cannot be hidden either.... Other suggestions? Thanks again everyone! Tim Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 5 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]
