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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

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

teefal
How can I create a "link" in a piece of text that on"mouse down" event it shows a particular script.




-------------------- m2f --------------------

(from forum)
http://squeakland.org/forums/viewtopic.php?p=14096#14096

-------------------- m2f --------------------

_______________________________________________
squeakland mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/squeakland
Reply | Threaded
Open this post in threaded view
|

Re: How do I create a "text link" to show a script?

K. K. Subramaniam
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").

Subbu
_______________________________________________
squeakland mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/squeakland
Reply | Threaded
Open this post in threaded view
|

Re: How do I create a "text link" to show a script?

Bert Freudenberg
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 -


_______________________________________________
squeakland mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/squeakland

TextAnchor.001.pr (43K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How do I create a "text link" to show a script?

teefal
In reply to this post by teefal
Was searching the web for something else and I found this answer to my question from Subbu at http://lists.squeakland.org/pipermail/squeakland/2009-December/005042.html

Thanks Subbu

Quote:
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").

Subbu




-------------------- m2f --------------------

(from forum)
http://squeakland.org/forums/viewtopic.php?p=14350#14350

-------------------- m2f --------------------

_______________________________________________
squeakland mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/squeakland