[squeakland] How do I create a "text link" to show a script?

Bert Freudenberg bert at freudenbergs.de
Tue Dec 1 06:33:23 EST 2009


On 01.12.2009, at 07:06, K. K. Subramaniam wrote:
> 
> On Tuesday 01 December 2009 09:12:00 am mrsteve wrote:
>> How can I create a "link" in a piece of text that on"mouse down" event it
>> shows a particular script.
> See SimpleButton in the Supplies. It associates a piece of text with a script 
> and you can choose what type of mouse action will trigger the script. You may 
> set the button color to transparent and border width to zero if you like. The 
> label can be edited from the white halo button ("change label").

... and then you can embed that button in the text (just like you can embed arbitrary objects in a text).

It seems we have some rendering and layout problems though (SQ-613). I've attached a demo project anyway.

- Bert -

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TextAnchor.001.pr
Type: application/octet-stream
Size: 32354 bytes
Desc: not available
Url : http://lists.squeakland.org/pipermail/squeakland/attachments/20091201/704d6a74/TextAnchor.001-0001.obj


More information about the squeakland mailing list