On Wed, Oct 26, 2011 at 9:29 AM, Gian Medri <gianme...@gmail.com> wrote:
> I have a practical problem with the *edit control.
> *I want to catch* * the pressed key before it appears on the screen and test
> if it is numerical or not. If not, it will send back a null value.
> I use J602.

J602 uses wd
http://www.jsoftware.com/help/user/wd_commands.htm

The problem with wd and its controls is that you only can take action
for the events that that control supports.  Some notes I made for
myself some time ago
(http://www.jsoftware.com/jwiki/Raul%20Miller/J%20Event%20Handlers)
suggest to me that only function keys get event handlers in an edit
control.  (Some controls get event handlers for all keys, but edit
controls do not.)

For a more versatile and generic UI design, I think you are going to
need j7 (but that's still bleeding edge, so you should be prepared to
spend some time isolating problems which do not exist in j602).

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to