Thanks for all the help on this subject. I have found an ignorant workaround for this. I'm not sure that I understand exactly why it works. (I guess that's more than a little redundant.) So far, I am still ignorant of a lot, so I'm pretty comfortable with the workaround.

As I was beginning to test some of the suggestions from the forum, I had to debug my last attempt that was shelved late one night when I could no longer make sense, even to myself. By the time I got it working, I had verified that entering characters in the edit box and then tabbing would not change the values in J. However, when I pressed the OK button, the handler then gathered up all the individual variables into an array and there they all were, whether I had tabbed or not. In fact, I didn't even have to hit enter on the last entry.

At the risk of being boring, repetitious, redundant, and saying the same thing over and over again, I don't really understand it, but I'll accept it for now.

Thanks again for everyone's help, I couldn't have done it without you,

Dave Porter

Eric Iverson wrote:
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


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

Reply via email to