× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 09/04/2015 12:52:06
PM:
----- Message from "Mark Murphy/STAR BASE Consulting Inc."
<mmurphy@xxxxxxxxxxxxxxx> on Fri, 4 Sep 2015 09:46:02 -0400 -----

To:

"RPG programming on the IBM i (AS/400 and iSeries)"
<rpg400-l@xxxxxxxxxxxx>

Subject:

Display File ENPTUI Events

I am currently using a lot of the ENPTUI controls like MOUBTN,
PSHBTNFLD, SNGCHCFLD.

It seems that double clicking on the screen with the mouse emulates
an ENTER key event if MOUBTN is not defined in the DDS. I would
prefer to capture the double click event and ignore it if possible.
It could be just a configuration issue, but I would prefer this to
work whether the user's workstation is configured to treat Left
mouse button double click as an enter key or not. So I added MOUBTN
(*ULD E00) to my display file which traps the double click and
returns it as an event to the program. I can retrieve the event by
interrogating the AIB byte in the display feedback area.
Documentation says that valid event codes are E00 - E15, and since
there is no documentation (that I can find which links these event
codes to AIB values, I tried them all, just to see what I would get
back. E00 - E09 return x'70' - x'79', but E10 - E15 report 'Function
key not allowed' on the Status line, and the Keyboard is locked.

Does anyone know why E10-E15 behave differently than E00-E09?

Is there any documentation on these display file events other than
in the DDS manual in the MOUBTN section?

Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx


In PC5250 and the new java-based IBM i Access Client solution emulator
(there's got to be a shorter name than that), you can configure the
double-click as Enter on or off under Edit, Preferences, Hotspots...

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.