[Maybe Spam] PolygonMorph balloon text

Frank Shearar Frank.Shearar at rnid.org.uk
Wed Jan 12 10:52:34 UTC 2005


Peace Jerome <peace_the_dreamer at yahoo.com> wrote:

> Frank wrote:

> >Thus my question: How can I have the
> >balloon text show up when the mouse
> >hovers anywhere within the bounds of
> >the polygon?

<snip>

> The key here is the transparency of the polygon. Try
> using a translucent one instead. (White at 5%
> translucency is pretty close to transparent.). I just
> tried this in 3.9-6542 and had no problem getting the
> balloons. 
> 
> The polygon keeps track of its holes and where it is
> transparent it is not there for the mouse/hand to see.
> This may be a bug but it probably won't be an easy one
> to fix.  So I suggest the work around.

Ah great. Perfect! Thanks! In fact, using an almost-transparent region has a pleasing side effect - one can immediately see any overlapping regions because they're less translucent. (I think that's the right terminology - the overlapping region has a higher #alpha, at any rate.)

I reckon it's inappropriate to change PolygonMorph - the current behaviour's spot-on since a PolygonMorph represents a polygon, not a polygonal region. Yep, Color white alpha: 0.05 is the answer for me!

frank


*******************************************************************
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
whom they are addressed. Any views or opinions expressed
are solely those of the author and do not necessarily represent
RNID policy.
If you are not the intended recipient you are advised that any
use, dissemination, forwarding, printing or copying of this
email is strictly prohibited.
If you have received this email in error please notify the RNID
Helpdesk by telephone on: +44 (0) 207 296 8282.
The Royal National Institute for Deaf People
Registered Office 19*23 Featherstone Street
London EC1Y 8SL No. 454169 (England)
Registered Charity No. 207720
********************************************************************




More information about the Squeak-dev mailing list