New topic: Listbox on top of other controls, but they show through
<http://forums.realsoftware.com/viewtopic.php?t=34289> Page 1 of 1 [ 6 posts ] Previous topic | Next topic Author Message markwalsh Post subject: Listbox on top of other controls, but they show throughPosted: Tue Jun 15, 2010 5:20 pm Joined: Wed May 20, 2009 4:43 pm Posts: 155 I am trying to show a listbox on top of other controls in a window, but other controls below it show through, especially when the mouse exits the listbox. The listbox is a part of a Container control, when the listbox is shown, it's parent is set to the parent of the container control since it will bleed out of the container's boundaries. I have found a fix by hard-coding setting the enabled property of the controls beneath it to false when the container control gets focus, and reenabling those controls when the container control loses focus. This combined with a refresh of the parent window when the listbox is activated has solved the problem, although it's a bit kludgy. I would like to find a better solution - since this doesn't easily take into account whether or not the controls were enabled when started, any controls I may add in the future, or if the listbox needs to expand or contract and will affect more or less of the controls on the window. I have tried fiddling with different settings, but haven't found any other way yet. Is there something I can do to easily prevent the background controls from showing through when the listbox covers them? I'm using RB 2010r2 _________________ RB 2009r4 Windows XP Top timhare Post subject: Re: Listbox on top of other controls, but they show throughPosted: Tue Jun 15, 2010 5:52 pm Joined: Fri Jan 06, 2006 3:21 pm Posts: 7896 Location: Portland, OR USA Why not use a PagePanel? Put the listbox on one page, and the other controls on another. Top markwalsh Post subject: Re: Listbox on top of other controls, but they show throughPosted: Tue Jun 15, 2010 7:30 pm Joined: Wed May 20, 2009 4:43 pm Posts: 155 timhare wrote:Why not use a PagePanel? Put the listbox on one page, and the other controls on another. Sorry, I haven't quite explained my intentions as clearly as I could. What I'm doing is similar to a popupmenu control, but with much more control over the list that is displayed, as well as the text style it is displayed in, so using a pagepanel is not applicable to this situation. What I have is working in this case, and luckily, I can get away with it for now since it is only covering 3 different controls in the application I need it for. But I would like to make it more universal when/if I need to use it again. Thanks for the response. _________________ RB 2009r4 Windows XP Top denisc Post subject: Re: Listbox on top of other controls, but they show throughPosted: Tue Jun 15, 2010 7:39 pm Joined: Wed Mar 17, 2010 10:33 am Posts: 40 I did the same with a combo box, way back with 2007r5. and had the same problem. Never did find a solution. If/when you find a solution would you please post it here. Regards Denis Top timhare Post subject: Re: Listbox on top of other controls, but they show throughPosted: Tue Jun 15, 2010 10:22 pm Joined: Fri Jan 06, 2006 3:21 pm Posts: 7896 Location: Portland, OR USA Did you try putting the listbox on a canvas that you fill with a background color? Top Markus Winter Post subject: Re: Listbox on top of other controls, but they show throughPosted: Wed Jun 16, 2010 3:00 am Joined: Sun Feb 19, 2006 4:00 pm Posts: 622 Location: Heidelberg, Germany Haven't tried it, but maybe try Alex Restrepo's Custom TabPanel: A Canvas-based tab panel that mimics the tabpanel in the RealBasic IDE (even with animations!). http://homepage.mac.com/alexrestrepo/indexmain.html _________________ Best Regards Markus 17in MBP C2D 2,5 GHz 4 GB RAM 500 GB HD MacOS X 10.6.3 & WinXP SP3 via VMware Fusion REAL Studio 2010 R2 Enterprise home town http://www.veronikawinter.de supported relief project http://www.veronikawinter.de/Indien home page http://www.ahatfullofsky.comuv.com/English/REALbasic/REALbasic.html Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 6 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]
