embedding morphs in text
Ned Konz
ned at bike-nomad.com
Sat Mar 24 16:25:27 UTC 2001
On Saturday 24 March 2001 00:39, Tom wrote:
> I would like to embed morphs in text and have them flow with the text.
> Is this possible?
>
> Despite dilligent digging, the only kinds of embeddings I could find by
> looking at the code are:
>
> -- morphs can be embedded at particular coordinates inside a "Text"
> object; the text will flow around the embedded morph (well, most
> of the time)
TextMorph has the "avoidOcclusions" flag. The "Fun with Morphic" project that
comes with the stock image demonstrates an example of this.
> -- text can be made special through text properties so that something
> happens when you click on it
You can associate a variety of actions with pieces of text. See the cmd-6
actions (you can associate text with arbitrary code, or a URL, etc.)
> What I'm looking for is the following:
>
> -- I'd like to embed a morph in the text as if it were a glyph;
> by default, HTML images act that way, and the Tk text widget
> offers this functionality as well
>
> What would also be useful would be this:
>
> -- I'd like to embed a morph in the text similar to what
> <img align=left ...> and similar do; that is, the morph
> would be associated with a particular text location, but
> the text would still flow around it.
>
> Is there some magical morph that I didn't find?
Also look at the GeeMailMorph, which knows how to anchor Morphs to text.
--
Ned Konz
currently: Stanwood, WA
email: ned at bike-nomad.com
homepage: http://bike-nomad.com
More information about the Squeak-dev
mailing list
|