Skip to main content

[Migrated content. Thread originally posted on 12 July 2005]

Is it possible to get an ntf-change event in enty-field from arrow keys?

i tested it with setting the keystrokes:

           SET     ENVIRONMENT      "KEYSTROKE" TO
                                    "Exception=71  kd".
           SET     ENVIRONMENT      "KEYSTROKE" TO
                                    "Exception=72  kl".
           SET     ENVIRONMENT      "KEYSTROKE" TO
                                    "Exception=73  kr".
           SET     ENVIRONMENT      "KEYSTROKE" TO
                                    "Exception=74  ku".


But i get no exception when i pressed an arrow key :(

David

[Migrated content. Thread originally posted on 12 July 2005]

Is it possible to get an ntf-change event in enty-field from arrow keys?

i tested it with setting the keystrokes:

           SET     ENVIRONMENT      "KEYSTROKE" TO
                                    "Exception=71  kd".
           SET     ENVIRONMENT      "KEYSTROKE" TO
                                    "Exception=72  kl".
           SET     ENVIRONMENT      "KEYSTROKE" TO
                                    "Exception=73  kr".
           SET     ENVIRONMENT      "KEYSTROKE" TO
                                    "Exception=74  ku".


But i get no exception when i pressed an arrow key :(

David
Moving the arrow key does not change the data so the notify event does not occur. You could map the left arrow to the backspace key so that it (the left arrow) is also destructive and you will trigger a notify event with the left arrow key.

[Migrated content. Thread originally posted on 12 July 2005]

Is it possible to get an ntf-change event in enty-field from arrow keys?

i tested it with setting the keystrokes:

           SET     ENVIRONMENT      "KEYSTROKE" TO
                                    "Exception=71  kd".
           SET     ENVIRONMENT      "KEYSTROKE" TO
                                    "Exception=72  kl".
           SET     ENVIRONMENT      "KEYSTROKE" TO
                                    "Exception=73  kr".
           SET     ENVIRONMENT      "KEYSTROKE" TO
                                    "Exception=74  ku".


But i get no exception when i pressed an arrow key :(

David
i want to show in a status bar the position of the coursor in a multiple entry-field.

I manged it yet with starting a thread after the user enters the entry-field and do somthing like that:


           perform until ch-thread = 0
              call    "C$SLEEP" using 0,8 end-call
              inquire e-text, cursor-row = i-row
              inquire e-text, cursor-col = i-column
              display panel-screen
           end-perform.

           stop thread entry-thread.


seems so that it works for me.

David