Skip to main content

[archive] Making Enter act like Tab

  • June 30, 2004
  • 7 replies
  • 0 views

[Migrated content. Thread originally posted on 30 June 2004]

Is it possible through the config file to make the Enter key act like tab in a GUI screen.

We currently have many GUI screens that work the "normal" Windows way, where you tab between fields and Enter presses the default (OK) button.

If a user wanted to change this so that Enter also moved between fields and did not press the default button, is this possible (without changing any programs)?

I tried something like

KEYSTROKE Edit=Next ^M
KEYSTROKE Edit=Next ^J

but that didn't seem to have any effect.

7 replies

[Migrated content. Thread originally posted on 30 June 2004]

Is it possible through the config file to make the Enter key act like tab in a GUI screen.

We currently have many GUI screens that work the "normal" Windows way, where you tab between fields and Enter presses the default (OK) button.

If a user wanted to change this so that Enter also moved between fields and did not press the default button, is this possible (without changing any programs)?

I tried something like

KEYSTROKE Edit=Next ^M
KEYSTROKE Edit=Next ^J

but that didn't seem to have any effect.
Try this

KEYSTROKE Edit=Next Terminate=13 ^M


Shaun

[Migrated content. Thread originally posted on 30 June 2004]

Is it possible through the config file to make the Enter key act like tab in a GUI screen.

We currently have many GUI screens that work the "normal" Windows way, where you tab between fields and Enter presses the default (OK) button.

If a user wanted to change this so that Enter also moved between fields and did not press the default button, is this possible (without changing any programs)?

I tried something like

KEYSTROKE Edit=Next ^M
KEYSTROKE Edit=Next ^J

but that didn't seem to have any effect.
That didn't seem to make any difference.

[Migrated content. Thread originally posted on 30 June 2004]

Is it possible through the config file to make the Enter key act like tab in a GUI screen.

We currently have many GUI screens that work the "normal" Windows way, where you tab between fields and Enter presses the default (OK) button.

If a user wanted to change this so that Enter also moved between fields and did not press the default button, is this possible (without changing any programs)?

I tried something like

KEYSTROKE Edit=Next ^M
KEYSTROKE Edit=Next ^J

but that didn't seem to have any effect.
Sorry, didn't read your original post correctly when you said you had a default button.

We're using the config line I told you in our programs, but we don't have default buttons on there. The line allows our users to either use CR or TAB until the final field which is a button, buit not a default.

Shaun

[Migrated content. Thread originally posted on 30 June 2004]

Is it possible through the config file to make the Enter key act like tab in a GUI screen.

We currently have many GUI screens that work the "normal" Windows way, where you tab between fields and Enter presses the default (OK) button.

If a user wanted to change this so that Enter also moved between fields and did not press the default button, is this possible (without changing any programs)?

I tried something like

KEYSTROKE Edit=Next ^M
KEYSTROKE Edit=Next ^J

but that didn't seem to have any effect.
Hmm, it seems odd to have a default button if you don't want the enter key to activate it. Maybe it's better not to have a default button in this scenario?

[Migrated content. Thread originally posted on 30 June 2004]

Is it possible through the config file to make the Enter key act like tab in a GUI screen.

We currently have many GUI screens that work the "normal" Windows way, where you tab between fields and Enter presses the default (OK) button.

If a user wanted to change this so that Enter also moved between fields and did not press the default button, is this possible (without changing any programs)?

I tried something like

KEYSTROKE Edit=Next ^M
KEYSTROKE Edit=Next ^J

but that didn't seem to have any effect.
Yes, it is odd.

What I was really trying to get at was that we currently have all of our graphical screens working the "Windows" way - tab between fields, Enter presses the "OK" (i.e. default) button, etc.

But we have a need to make some parts of it work with another software package, which uses the Enter key to move between fields.

I was hoping to be able to provide a configuration option so the user can pick how they want to move between fields, and so we can default it to Enter when we operate along with this other software package, so the interface is similar.

[Migrated content. Thread originally posted on 30 June 2004]

Is it possible through the config file to make the Enter key act like tab in a GUI screen.

We currently have many GUI screens that work the "normal" Windows way, where you tab between fields and Enter presses the default (OK) button.

If a user wanted to change this so that Enter also moved between fields and did not press the default button, is this possible (without changing any programs)?

I tried something like

KEYSTROKE Edit=Next ^M
KEYSTROKE Edit=Next ^J

but that didn't seem to have any effect.
Interesting, so something like a NO_DEFAULT_BUTTON configuration entry that would disable default buttons? That would certainly make things easiar for you.
No idea how your app is constructed, but if there's a common point after screen section display that you can find the default button and conditionally remove it's ok-button or default-button style this might be reusable with all your screens. I'm not sure if a MODIFY MY-BUTTON NOT PBS-DEFAULT-BUTTON, NOT PBS-OK-BUTTON actually works though. According to acucobol 6.1 doc, the windows o/s may not correctly change styles on a control.

[Migrated content. Thread originally posted on 30 June 2004]

Is it possible through the config file to make the Enter key act like tab in a GUI screen.

We currently have many GUI screens that work the "normal" Windows way, where you tab between fields and Enter presses the default (OK) button.

If a user wanted to change this so that Enter also moved between fields and did not press the default button, is this possible (without changing any programs)?

I tried something like

KEYSTROKE Edit=Next ^M
KEYSTROKE Edit=Next ^J

but that didn't seem to have any effect.
Yes, enter key acts like tab if there is not a default PB. To unset a default button use MODIFY OK-PB, NOT DEFAULT-BUTTON.