[Jprogramming] edit control
Raul Miller
rauldmiller at gmail.com
Wed Oct 26 21:47:51 HKT 2011
On Wed, Oct 26, 2011 at 9:29 AM, Gian Medri <gianmedri at 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
More information about the Programming
mailing list