[Squeakland] 2 questions - embedding text box and keystroke
listener
darius at inglang.com
darius at inglang.com
Sat Dec 11 15:33:08 PST 2004
1) Drag a playfield from the flap. Embed both the paint object and the text
box into the image.
2) Smalltalk code in the Tetris game class is one example of a keystroke
listener but you have to have your mouse over the morph for it to receive
the keystrokes. Morphs moving around make this hard to do.
----- Original Message -----
From: "Arvind S. Grover" <AGrover at hewittschool.org>
To: <squeakland at squeakland.org>
Sent: Thursday, December 09, 2004 1:05 PM
Subject: [Squeakland] 2 questions - embedding text box and keystroke
listener
>I have tried posting these in the forum, but it seems that no one is
> really looking there, so I am going to post them here:
>
> 1) i am trying to embed a text box into a painted object so that it
> looks and acts like one object. basically i want to be able to pick up
> and move the item as one, but still be able to script the textbox's
> behavior. i am have tried the embed action, but it only says i can embed
> into "world." any ideas?
>
> 2) What is the best way to "listen" for keystrokes? Example: the user
> hits the left arrow key and the object moves to the left.
>
>
> _______________________________________________
> Squeakland mailing list
> Squeakland at squeakland.org
> http://squeakland.org/mailman/listinfo/squeakland
More information about the Squeakland
mailing list