1. Re: Win32lib key capturing didn't work????

On Wed, 6 Jan 1999 14:16:38 -0800, Cuny, David  wrote:

>Ray Smith wrote:
>
>> check out the following sample program ......
>
>Change:
>
>>    puts(1, KeyPress)
>
>to:
>
>>     repaintWindow( Main ) -- erase the window
>>       wPuts( Main, KeyPress ) -- puts(), but in the requested window
>
>Note that if you need to capture *special* keys, you need the
>onKeyUp/onKeyDown routines.
>
>Hope this helps.
>
>-- David Cuny

Thanks for replying David ....The result is in ...
I'M STUPID!!!!! hehe

I tried changing the two lines put it still didn't work.
As far as i can see the push button has focus and if I change event to the push
button (ie.  onKeyPress[ "pushbutton" ] )  it works, but thats not what I'm
trying to do ...
any help will be very appreciated.

Thanks
Ray Smith
Ray.Smith at fujitsu.com.au

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu