[fxruby-users] Canvas Rubberband Selection

Steve D. steviedizzle at gmail.com
Fri Oct 13 14:33:34 EDT 2006

On 10/13/06, Jeroen van der Zijp <jeroen at fox-toolkit.org> wrote:
> On Friday 13 October 2006 09:03, Steve D. wrote:
> > Hi,
> > I'm porting a QtRuby (4.1) app over to FxRuby cause I need the
> > cross-platform compatibility and was wondering if there was a
> > Rubberband (http://doc.trolltech.com/4.1/qrubberband.html) type class
> > for Fox or if I will have to roll my own.
> There are only two widgets which have "rubberband-style" selection: FXGLViewer
> and FXIconList.  Both have built-in selection, but its implemented differently;
> the FXGLViewer implements the drawing using OpenGL, whereas the FXIconList does
> it using 2D drawing API's.
> If it appears generally useful, we could implement FXRubberBand; perhaps you
> just give an example of how you would use such a thing in your code [assuming
> you need it outside of the FOX widgets which have this already built in]...
>        - Jeroen

In the previous program I was using the rubberband to create
rectangles on a 2D Canvas so that they could be stored, etc. In the
end I don't really need anything specific I would just like a click
and drag type rectangle to be displayed on an FXCanvas instance.


More information about the fxruby-users mailing list