Article View: comp.windows.interviews
Article #84Re: rubberbanding
From: Mark Linton
Date: Wed, 22 Jul 1992 20:15
Date: Wed, 22 Jul 1992 20:15
18 lines
1608 bytes
1608 bytes
In article <9207221631.AA13904@sc.zuken.com>, daw@sc.zuken.com (Don Walters) writes: |> Thanks for the example on how to rubberband. It certainly looks |> easy enough, but I am clearly not understanding something yet |> (and starting to feel pretty dense :-). I tried using your |> approach in my code, and got different results, so I went back |> to your example and replaced the "TransformFitter(new Image" line |> with a line to instance my own Glyph which draws some graphics. |> I must not be doing something properly in my Glyph, because now when |> I do the "press/drag/release" the image clears, the rubberband |> box seems to draw on top of itself (so you get a sort of upside-down |> L shape) and when your release, the rubberband box is left behind. The approach in the example relies on the selector's body being opaque and not having any glyphs under it. Otherwise, the rubberbanding damage will cause the glyphs underneath to redraw. If you put the background inside the selector rather than around the selector, then you will find the results to be what you want.
Technical Details
Message-ID:
<nkh1lc4@fido.asd.sgi.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!darwin.sura.net!mips!odin!fido!marktwain.rad.sgi.com!lintonReferences:
<9207211800.AA21310@marktwain.rad.sgi.com> <9207221631.AA13904@sc.zuken.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!darwin.sura.net!mips!odin!fido!marktwain.rad.sgi.com!linton From: linton@marktwain.rad.sgi.com (Mark Linton) Subject: Re: rubberbanding Message-ID: <nkh1lc4@fido.asd.sgi.com> Sender: news@fido.asd.sgi.com (Usenet News Admin) Reply-To: linton@marktwain.rad.sgi.com (Mark Linton) Organization: sgi References: <9207211800.AA21310@marktwain.rad.sgi.com> <9207221631.AA13904@sc.zuken.com> Date: Wed, 22 Jul 1992 20:15:38 GMT Lines: 18