On May 14, 2007, at 1:41 PM, [EMAIL PROTECTED] wrote:

> Can anyone find a way to get a ProgressBar to stay clipped to some
> rectangular sub-area of a window?  Declares are acceptable, as long as
> they play nice with the rest of the RB framework, but gross kludges
> (like positioning a second, transparent window on top of the first)
> will probably not be helpful.


It's not just progress bars, most controls will quite happily  
continue to draw themselves right out of the clipping region of  
whatever container control or canvas that you're moving them around  
in. This has been a bug for a really long time. You can signon to  
this bug report which was opened in 2004.. nzoejfez

My work around for embedding controls in most things now is to call  
directly to the DrawTheme methods via declares. For something like a  
progress bar you have to continually redraw it so that it will move,  
but this is less overhead than drawing a regular RB control to an  
invisible window and trying to blit that over to the real window. And  
it does not make it easy since you have to handle all the stuff that  
RB normally takes care of for you. I've mostly used it to embed  
controls into a listbox cell. (though there should probably be a  
feature request in there to insert a container control into a listbox  
cell come to think of it, now THAT would be cool!) and I had to  
handle all the drawing and UI interaction in my own code. Thats not  
too hard for a couple of pushbuttons, but anything more and it  
quickly becomes an exercise in frustration.

Thanks!
  James Sentman  <http://www.MacHomeAutomation.com/>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to