I don't think there is a way to do exactly what you are asking. In a J form
the tab key is seen by the host as a request to move to the next control and
is not see by J as an event.
A possible workaround, assuming your edits are single-line edit controls, is
to use the enter event to do the enter stuff and then move focus to the next
control. This gives you a single key stroke, albeit enter rather than tab.
Let us know if you need any help with this option.
Oleg has also suggested some workarounds but they are a bit more ambitious.
----- Original Message -----
From: "David Porter" <[EMAIL PROTECTED]>
To: "J programming list" <[email protected]>
Sent: Monday, November 12, 2007 10:07 PM
Subject: [Jprogramming] GUI tab = enter+tab?
First, thanks for all the help the members of this list have given me. My
project is nearly done, the client is pleased, and I will shortly receive
a few bucks., I would probably have given up without being pointed in the
right direction over the last two months.
The problem is that I have a gui form that has several edit controls on
it. In the form editor, I can set the Tab order, but there doesn't seem
to be any way to have the tab also act as if I had hit enter first. It is
annoying to have to hit enter and then tab to the next edit control.
Microsoft's Visual Studio form editor has control of all sorts of
parameters that seem to be absent in the J form editor.
1. Can the tab key be made to operate as if enter+tab were pressed?
2. Could a form made in the Microsoft Visual studio, that was created with
constraints such as numbers only, caps only, tab order, and enter when tab
(or something like that) be used in J without lots of programming?
Thanks again,
Dave Porter
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm