Re: ON KEY in INPUT statement
Mike Aubury <[email protected]> Thu, 5 Aug 2021 10:56:40 +0100
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <CAGAq4WG2ix8K9O+SzAg5ciishbgmQuaRFsrrgxpXvgFMd1UmUw@mail.gmail.com> |
Thats a bug, it shouldnt use the key if its already been used for an ON KEY. Do you have a full example (zip with form etc) ? It would just save a little bit of time debugging it. <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avg.com <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Thu, 5 Aug 2021 at 10:53, Iwan AB <[email protected]> wrote: > Dear Mike, > > I try to use ON KEY in the following input statement > > LET r = 5 > LET c = 5 > > OPEN WINDOW win1 AT r,c WITH FORM "f_expr" > ATTRIBUTE (BORDER) > > INPUT w_expr FROM expr > ON KEY ("i") > IF r > 2 THEN > LET r = r-1 > MOVE WINDOW win1 AT r, c > END IF > > ON KEY ("j") > IF c > 2 THEN > LET c = c-1 > MOVE WINDOW win1 AT r, c > END IF > END INPUT > > CLOSE WINDOW win1 > > when I press i or j, the window move up or left, but the key is displayed > on the input field. > how can I suppress the key not to be displayed on the input field? > > Regards, > > Iwan > > > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. > www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> > <#m_3704471970160981965_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > _______________________________________________ > Aubit4gl-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss > _______________________________________________ Aubit4gl-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss