New topic: keep object (canvas/placard) on top
<http://forums.realsoftware.com/viewtopic.php?t=47211> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message ngmp Post subject: keep object (canvas/placard) on topPosted: Fri Mar 08, 2013 10:29 am Joined: Wed Jan 09, 2013 5:53 am Posts: 10 FIrstly... I did search for this but no answer seemed forthcoming!!. If the answer is elsewhere please just point me in the right direction and accept my apologies. Secondly...the issue I have created a contextual menu in a listbox and everything is hunky dory except one thing. I am using celltag to "tag" the listbox entry. So imagine you click on a cell in the list box and the contextual menu gives you say 5 choices. You pick one and off you go to the next bit. However I want the user to be able to click the cell (with the choice already there) and a new menu will be shown asking if these are mutliples of the same choice. e.g. Listbox cell empty - right click enter package 1 (for example) as choice from 5 packages. Package1 appears in cell Right click again and contextual menu asks if this is package 1a, 1b, 1c etc.... This does have a real life situation. In a lab if an instrument is used for many tests then the tests need to be assigned to Instrument 1 (say) but if instrument 1 is "full to capacity" then the lab need two instruments 1s so the same instrument but occuring twice and used for different things. (hope that's clear) So when right clciking the second time I have build a "pop up " box using canvas, placard or groupbox (none are working onthis for me). My idea is to have the placard (say) visible with option for the user to input and ok and cancel buttons. I am using a textfield for input so on ok action it fills the celltag of the listbox cell with the relevant occurance. But each time the placard/canvas/groupbox appears (no problem until user clicks the input textfield) and I click textfield to make the choice the original listbox (which was in the background) comes back to the top (except the textfield) and obscures the canvas/placard/etc... I have tried looking at the focussing but to no available it always seems that the original listbox resurfaces to the top. I have "grouped" all the controls to the canvas so have assumed that if the canvas is on top then the control will be as well...does not seem to be the base I cannot get the canvas/placard (with it's controls) to "stay on top" until made invisible. happens with scrollbars (in the background) in particular. ANy help on this? I am sure it's simple and I am expecting a homer simpson moment!? Thanks a million guys/girls Nick 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]
