[squeak-dev] continuous display of cursor position

Bert Freudenberg bert at freudenbergs.de
Mon Jan 7 10:59:15 UTC 2013


On 04.01.2013, at 13:48, Bob Arning <arning315 at comcast.net> wrote:

> UpdatingStringMorph new 
>     target: [World activeHand position asString]; 
>     getSelector: #value; 
>     stepTime: 10;
>     openInWorld
> 
> Cheers,
> Bob

Scott Wallace has a "watch it" context menu item in his images that does exactly this. E.g., you simply select an expression:

	ActiveHand position

and choose "watch it" from the menu, and it creates a simple updating string morph.

(similarly, there is a "button for it" menu item that executes the expression once when clicked. very convenient)

- Bert -




More information about the Squeak-dev mailing list