# I have problem with INPUT-FIELD

**URL:** <https://techcommunity.softwareag.com/t/i-have-problem-with-input-field/61264>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux, Natural-on-Windows-Unix\
**Created:** [July 28, 2006, 1:39am UTC](https://techcommunity.softwareag.com/t/i-have-problem-with-input-field/61264 "2006-07-28T01:39:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angel\_Mendoza\_O](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@Angel\_Mendoza\_O](https://techcommunity.softwareag.com/u/Angel_Mendoza_O)\
**Post date:** [July 28, 2006, 1:39am UTC](https://techcommunity.softwareag.com/t/i-have-problem-with-input-field/61264/1 "2006-07-28T01:39:47Z")

</div>

Good Afternoon,

I am using an INPUT-FIELD for load an information and am adding a code in the METHOD “ENTER” to call the method CLICK of a BITMAP, which does not execute it seems that he executes when it loads again the Dialogue this is correct???

There exists a way of emulating EVENTS of keyboard.

In the INPUT-FIELD it allows me TAB but it does not capture or recognizes the ENTER, since I can do it?.

I am grateful for your commentaries and equally to moderators .

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [July 28, 2006, 12:53pm UTC](https://techcommunity.softwareag.com/t/i-have-problem-with-input-field/61264/2 "2006-07-28T12:53:01Z")

</div>

Maybe I don’t understand your problem correctly. But it seems to me, that you misunderstand the event ENTER. The event ENTER of an INPUT-field occurs, if you place the cursor in it. It doesn’t occur when you type something inside the field. This is covered by the event CHANGE.

Please try out the following for a quick test:

1. Create a new dialog
2. place two input-fields on it (and leave their names as they are)
3. place a text constant on it (the default name should be #TC-1)
4. then type the following code into every EVENT of the second input field (named #IF-2)

```auto
compress *EVENT "occurred on #IF-2" into #TC-1.string
```

Then click on the fields, enter something into it, jump with TAB between the fields and see, when the event ENTER occurs.

---

<div class="post-metadata">

**Author:** ![Angel\_Mendoza\_O](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@Angel\_Mendoza\_O](https://techcommunity.softwareag.com/u/Angel_Mendoza_O)\
**Post date:** [July 29, 2006, 4:07am UTC](https://techcommunity.softwareag.com/t/i-have-problem-with-input-field/61264/3 "2006-07-29T04:07:55Z")

</div>

Thank you very much,

There can give me a siteor manual of reference NATURAL WINDOWS with ActiveX :?:

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [July 31, 2006, 12:40pm UTC](https://techcommunity.softwareag.com/t/i-have-problem-with-input-field/61264/4 "2006-07-31T12:40:06Z")

</div>

The [Natural for Windows documentation](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat622win/overview.htm) contains a list of documents about event driven programming techniques. Here you can find a chapter “Working with ActiveX Controls”.

[http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat622win/pg/pg\_pte-over\_0820.htm](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat622win/pg/pg_pte-over_0820.htm)

---

<div class="post-metadata">

**Author:** ![Michael\_S](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@Michael\_S](https://techcommunity.softwareag.com/u/Michael_S)\
**Post date:** [August 4, 2006, 6:05pm UTC](https://techcommunity.softwareag.com/t/i-have-problem-with-input-field/61264/5 "2006-08-04T18:05:53Z")

</div>

Hi,

I nomally put an invisible PushButton on the dialog with the Style set to “OK Button (O)”. In the Click-event i put at code like this:

process gui action get-focus with #focus  
decide on first value of #focus  
value #inputfield /\* ← name of field to check  
. /\* ← action code goes here 😉  
.  
.  
none value ignore  
end-decide

I use this for ENTER in InputField, SelectionBox, ListView etc.

A similar method can be used for the ESC with the PushButton Style “Cancel Button (C)” or by using the Accelerator in the PushButton supporting a great number of key combinations.

I hope you find this useful 🙂

Kind regards

Michael

---

<div class="post-metadata">

**Author:** ![Angel\_Mendoza\_O](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@Angel\_Mendoza\_O](https://techcommunity.softwareag.com/u/Angel_Mendoza_O)\
**Post date:** [August 23, 2006, 12:58am UTC](https://techcommunity.softwareag.com/t/i-have-problem-with-input-field/61264/6 "2006-08-23T00:58:45Z")

</div>

Matthias,

Thank my friend this was the link that I needed

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [August 24, 2006, 5:47pm UTC](https://techcommunity.softwareag.com/t/i-have-problem-with-input-field/61264/7 "2006-08-24T17:47:05Z")

</div>

[quote="Michael S

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [August 24, 2006, 7:46pm UTC](https://techcommunity.softwareag.com/t/i-have-problem-with-input-field/61264/8 "2006-08-24T19:46:20Z")

</div>

> [@Steve Robinson](#):
>
> The idea is to get the user accustomed to clicking and tabbing, rather than entering.

A few years ago, I had a discussion with experienced typists about the GUI-Featuers coming with Natural “Lightstorm”. The conclusion was, that the programmers should make important dialogs controllable by pressing TAB and ENTER. It is much more faster to TAB end ENTER thru a screen than controlling the dialog by mouse. Switching from keyboard to mouse and back again is very time consuming.

So I think: Michael’s solution sounds good for that cases.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:40pm UTC](https://techcommunity.softwareag.com/t/i-have-problem-with-input-field/61264/9 "2021-04-02T14:40:45Z")

</div>


