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 --------------------
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
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 -
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
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@lists.squeakfoundation.org