New topic: 

Control containers overlapping, and not being clipped

<http://forums.realsoftware.com/viewtopic.php?t=26360>

       Page 1 of 1
   [ 7 posts ]                 Previous topic | Next topic         Author  
Message       atonewell           Post subject: Control containers overlapping, 
and not being clippedPosted: Sat Feb 07, 2009 1:16 pm                        
Joined: Sat Feb 07, 2009 1:07 pm
Posts: 3              I've searched the forum for a solution to this problem, 
but to no avail.

I'm creating a number of control containers, which I then dynamically scrolling 
up and down.

The control containers are embedded into another control container.

However, when the control containers are positioned so that they are outside of 
the bounds of the control in which they are embedded, rather than being 
clipped, they are still being drawn.

Is there a way around this problem?

Thanks!   
                            Top                pentium10           Post 
subject: Re: Control containers overlapping, and not being clippedPosted: Sat 
Feb 07, 2009 1:27 pm                               
Joined: Tue Jan 03, 2006 10:38 am
Posts: 331              Let me ask, do you have canvas on the containers?
Does it happen on Mac or Linux?   
                            Top               Bob Keeney           Post 
subject: Re: Control containers overlapping, and not being clippedPosted: Sat 
Feb 07, 2009 1:38 pm                               
Joined: Fri Sep 30, 2005 11:48 am
Posts: 1144
Location: Lenexa, KS              I reported this into the feedback system last 
fall.  The short answer is no, there's no way around it that I know of.

I've had better luck with Windows apps than with Mac apps in getting it to work 
better.  It's possible (though I have no supporting evidence at this point) 
that Cocoa support will solve this issue.  I consider this to be a huge failing 
and limiting factor in using container controls.  Although, to be fair, I 
suspect that we're trying to use container controls in a way that was not 
originally intended by the RS engineers.     
_________________
Bob K.

The Association of REALbasic Professionals
http://www.arbp.org/

BKeeney Software Inc. - REALbasic Consulting   
http://www.bkeeney.com/       

BKeeney Briefs Blog For REALbasic Developers 
http://www.bkeeneybriefs.com/  
                            Top                pentium10           Post 
subject: Re: Control containers overlapping, and not being clippedPosted: Sat 
Feb 07, 2009 1:46 pm                               
Joined: Tue Jan 03, 2006 10:38 am
Posts: 331              If matters I have submitted too, no answer yet.
I have problems on Mac, where mostly off stage canvas objects are not hidden, 
and they are visible over the application.   
                            Top               atonewell           Post subject: 
Re: Control containers overlapping, and not being clippedPosted: Sat Feb 07, 
2009 2:05 pm                        
Joined: Sat Feb 07, 2009 1:07 pm
Posts: 3              Hmmm. That's not good.

Maybe there's another way of doing what I want to do.

I basically want to implement a scrollable list of custom controls.

If I was doing this natively in XCode, I'd just use an NSCollectionView.

Is there any similar for RB, perhaps developed by a 3rd party if not natively 
supported?

Thanks.   
                            Top                Bob Keeney           Post 
subject: Re: Control containers overlapping, and not being clippedPosted: Sat 
Feb 07, 2009 2:20 pm                               
Joined: Fri Sep 30, 2005 11:48 am
Posts: 1144
Location: Lenexa, KS              Depending up on the height of your 'row' of 
controls you could control visibility of the row.  Then you only allow 
scrolling increments the size of your row.  It's kind of kludgey but I've 
gotten it to work.  It's much harder to do this if you got large 'rows'.     
_________________
Bob K.

The Association of REALbasic Professionals
http://www.arbp.org/

BKeeney Software Inc. - REALbasic Consulting   
http://www.bkeeney.com/       

BKeeney Briefs Blog For REALbasic Developers 
http://www.bkeeneybriefs.com/  
                            Top                atonewell           Post 
subject: Re: Control containers overlapping, and not being clippedPosted: Sun 
Feb 08, 2009 3:42 am                        
Joined: Sat Feb 07, 2009 1:07 pm
Posts: 3              Unfortunately the rows are quite large, which would make 
this approach look rather unattractive.    
                            Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 7 posts ]     

-- 
Over 900 classes with 18000 functions in one REALbasic plug-in. 
The Monkeybread Software Realbasic Plugin v8.1. 

&lt;http://www.monkeybreadsoftware.de/realbasic/plugins.shtml&gt;

[email protected]

Reply via email to