[ENH] Refactores balloon help text support

Stefan Matthias Aust sma at 3plus4.de
Thu Dec 23 19:56:09 UTC 1999


--=====================_945975369==_
Content-Type: text/plain; charset="us-ascii"


>From the change file:

"Refactored balloon support:  The balloon morph now really finds its best
location - this never worked before I think.  Stepping now works even with
no target morph.  Furthermore, you can now remove an existing help text
again and customize the help text color for your own morphs."

I wanted to understand and use the BalloonMorph to display "speech bubble".
 This was the first step.  See below.

All changes are for 2.6 but will hopefully also work with 2.7.  I'd be
really glad if this effort wasn't wasted time...

There's one problem left:  The method #showBalloon: will first delete all
existing instances of BalloonMorph before showing a new one.  This also
affects my own speech bubbles :-(  This is done to make sure that there's
only one help text at a given time - but still, I think this is not the
right way to do this.

I'd suggest to makeup a global world property #balloon which remembers the
current balloon and then show balloon will only remove that balloon not
touching mine.  Currently, every morph has such a property but it doesn't
really use it.

I've now also added a change set that implements this idea.  It seems to
work - at least in a full screen morphic world.  I'd appreciate if somebody
else would comment on these changes.

bye
--=====================_945975369==_
Content-Type: text/plain; name="Balloon-Patch.23Dec822pm.zip"
 ; x-mac-type="705A4950"
 ; x-mac-creator="705A4950"
Content-Disposition: attachment; filename="Balloon-Patch.23Dec822pm.zip"
Content-Transfer-Encoding: imap_stub

0,2621,2,3952,0,

--=====================_945975369==_
Content-Type: text/plain; name="Balloon-Enh.23Dec854pm.cs"
 ; x-mac-type="65417070"
 ; x-mac-creator="43534F6D"
Content-Disposition: attachment; filename="Balloon-Enh.23Dec854pm.cs"
Content-Transfer-Encoding: imap_stub

0,2621,3,2458,0,

--=====================_945975369==_
Content-Type: text/plain; charset="us-ascii"



--
Stefan Matthias Aust  //  Bevor wir fallen, fallen wir lieber auf.
--=====================_945975369==_--





More information about the Squeak-dev mailing list