realbasic-nug.it
[Top] [All Lists]

Re: Keydown Event

To: REALbasic NUG Italian <realbasic-nug dot it at lists dot realsoftware dot com>
Subject: Re: Keydown Event
From: Luca Infante <l dot infante at poc dot it>
Date: Fri, 10 Feb 2006 18:00:58 +0100
Delivered-to: realbasic-nug dot it at lists dot realsoftware dot com
References: <7E143215-EE18-4E14-A0EE-2E553ED65B73 at mclink dot it> <D71BA035-91F4-4700-B6E4-9F7A6C4F366C at elbrigante dot it> <CBB526BE-0DFD-4D3C-B883-1DB500BCD126 at mclink dot it> <a06230900c0116918db3e at [192 dot 168 dot 2 dot 2]> <9980273A-5F90-402E-B44E-B11B1346FCE4 at sqlabs dot net>
Non so dirti perchè non funziona, ma un modo per aggirare il problema è quello di aggiungere un controllo Timer (Mode 2- Multiple e con un periodo di circa 1000) e nel suo Action event testare il tasto ESC con:

If Keyboard.AsynckeyDown( escCode) then
        me.Window.Close
end if

escCode te lo devi trovare tu però :-)

Trovato se vi interessa per l'esc è il 53. Nella prova che avevo fatto io ne usavo un altro convinto che era giusto. Sembravo Homer, d'ho!!!! Devo solo regolare meglio il tempo del Timer ma funziona anche nelle finestre sheet.

Ciao Luca


<Prev in Thread] Current Thread [Next in Thread>