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: Alessandro <alessandro dot karuso at libero dot it>
Date: Thu, 9 Feb 2006 23:14:45 +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]>
Ciao Luca,
in realtà dovrebbe essere l'esatto contrario e cioè quando un tasto viene premuto e non è gestito da alcun oggetto nella finestra, allora si attiva il Window.Keydown Event

Per provare ho aperto il classico progetto di default e ho messo un msgbox nel keydown event della finestra (tu dovresti mettere un if Key = Chr( 27 )...). A me funziona.

Forse però non ho capito bene il problema.

Ciao,
        ale


Il giorno 09/feb/06, alle 22:52, Luca Infante ha scritto:

Ciao a tutti ho un problemino. Come mai il Keydown Event della Finestra avviene solo se un qualsiasi editfield presente nella finestra ha il focus? A me dovrebbe funzionare anche quando il focus è della Finestra. Come faccio? In pratica vorrei che l'utente schiacciando il tasto esc chiuda la finestra.

Grazie Mille.

Ciao Luca





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