put the control on an offscreen window, and then use window.drawinto to drasw the controls state.
Yes, it's cheating. - Tom On 15/05/2007, at 3:41 AM, [EMAIL PROTECTED] wrote: > Per another thread, I'm contemplating making a sort of grid-like > control thingy as an open-source contribution to the community. > > But several participants in that thread have expressed a desire to > embed controls into this scrollable grid. That's hard -- maybe harder > than I had realized. I've just tried it and I'm stumped. But maybe > you can do better? Here's the challenge: > > Find some way to contain a ProgressBar (with a nonzero Value) in a > rectangular sub-region of the screen. As the progress bar is moved > around, it may be partially or entirely clipped by the bounds of this > region, and should do the right thing -- it should never draw outside > the designated bounds. > > I tried both embedding it in a Canvas (explicitly setting its > Parent to > the canvas), and creating it inside a ContainerControl (cloning a > prototype that was already inside that ContainerControl). No dice in > both cases: as soon as I position the ProgressBar outside the bounds, > it just merrily draws outside those bounds. This was true on both a > Composite and a regular window (tested under OS X with 2007R2). > > 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. > > Thanks, > - Joe > > > -- > Joe Strout -- [EMAIL PROTECTED] > Strout Custom Solutions > > > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > > Search the archives: > <http://support.realsoftware.com/listarchives/lists.html> _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
