Adding KeyBoard Support

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

Adding KeyBoard Support

siddharth-2

 
Hi all ,
how xactly do i create a subclass of ImageMorph that is able to respond to keyBoard inputs like any keypress when the imageMorph has focus etc etc .. .

plz help !
Thnx





Reply | Threaded
Open this post in threaded view
|

Re: Adding KeyBoard Support

karl-8
Noname Myname skrev:

>
>  
> Hi all ,
> how xactly do i create a subclass of ImageMorph that is able to
> respond to keyBoard inputs like any keypress when the imageMorph has
> focus etc etc .. .
>
> plz help !
> Thnx
>
Look at how TextMorph handles keyboard input and do the same for your
ImageMorph subclass.
I guess you have to do some stuff with drawing as well if you want the
characters drawn on the morph.
Karl
>
>
>
> <http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3>
>
> ------------------------------------------------------------------------
>
>
>