T.R | Title | User | Personal Name | Date | Lines |
---|
182.1 | A suggestion | SCOTTC::MARSHALL | Pearl-white, but slightly shop-soiled | Fri Mar 06 1992 14:23 | 6 |
| Hi,
Try using YESNO_PROMPT and checking OA$PROMPT_TEXT and/or OA$PROMPT_DISPOSE,
instead of SINGLE.
Scott
|
182.2 | We're planning to try disabling/enabling application keypad mode | SANFAN::LESLIE_DA | Greetings & Solutions | Fri Mar 06 1992 21:40 | 7 |
| Thanks, Scott, but YESNO_PROMPT requires a character confirmation
(Y<CR>). I believe we're going to reset the keypad to numeric get the
character then reset to application keypad. This may still cause
problems if one of the arrow keys is pressed, but we'll see...
Thanks for (any/the) interest...
Dan
|
182.3 | Non-app KP0 = "0" | IOSG::TALLETT | Mit Schuh bish hi | Mon Mar 09 1992 08:04 | 8 |
|
I'm not sure what the keypad resetting is supposed to acheive,
but in non-application mode, KP0 generates ASCII "0" which isn't
a terminator character so you won't be able to see it until
the user types <RETURN> or something.
Regards,
Paul
|
182.4 | PROMPT | UTRTSC::BOSMAN | We're just sugar mice in the rain | Mon Mar 09 1992 08:27 | 7 |
| Dan,
You also could use PROMPT and test OA$FORM_TERMINATOR and
OA$PROMPT_TEXT. One may press RETURN on PROMPT without giving any
input.
Sjaak.
|
182.5 | Looks like PROMPT is the only way to go . . . | SANFAN::LESLIE_DA | Greetings & Solutions | Tue Mar 10 1992 03:44 | 10 |
| RE: -.2 .PROMPT is a script directive and responds when a single
character is pressed. The arrow keys cause the same problem as
the keypad keys, so sing umeric keypad buys me little.
RE: -.1 I was hoping to avoid using PROMPT to do this, but it appears
that this is the only way to do what I want (without the new
form qualifier that is).
Thanks for the ideas...
Dan
|
182.6 | does it? | SHALOT::GEERDES | | Thu Mar 12 1992 21:13 | 4 |
| My script containing the following line does not seem to have any
extra characters generated, whatever key I press.
.SINGLE 23,1,"ABC"
|
182.7 | IBM PC running reflection . . . | SANFAN::LESLIE_DA | Greetings & Solutions | Fri Mar 13 1992 06:12 | 7 |
| Ben,
The user is running Reflection on an IBM PC and they keys do indeed
generate the extra characters. The first one looks like a {SPACE}.
I plan to implement something tomorrow...
Dan
|
182.8 | Macy's West' mechanism . . . | SANFAN::LESLIE_DA | Greetings & Solutions | Fri Apr 10 1992 20:00 | 76 |
|
Here's the way we implemented this functionality at Macy's West. The
following named data is from the form MACYS_MORE_EXIT_KEYS. It makes
you enter Y to really exit (kind of like WPS-PLUS).
Enjoy...
Dan
;;~~EXIT SCREEN KEYS COMMENTS~~;;
.remarks The key definitions used here enable the application developer to
obtain confirmation from the user about leaving an entry form when they
press one of the EXIT SCREEN keys. In order to use these key
definitions, the following must be done:
1. A /pre_function='xop "~~MACYS_EXIT_PRE~~"' must be placed in the .TYPE
form directive
2. This form (MACYS_MORE_EXIT_KEYS) must be placed on the .MORE form
directive
3. The entry form must not specify named data code for the following keys:
CR, ENTER, GOLD F, KEY 0, GOLD K, GOLD Q, or F10. These definitions are
defined in this section
;;.CR;;
xop "~~MACYS_CR~~"
;;.ENTER;;
xop "~~MACYS_CR~~"
;;.GOLD F;;
xop "~~MACYS_CR~~"
;;.KEY 0;;
xop "~~MACYS_KEY_0~~"
;;.GOLD K;;
xop "~~MACYS_KEY_0~~"
;;.GOLD Q;;
xop "~~MACYS_KEY_0~~"
;;.F10;;
xop "~~MACYS_KEY_0~~"
;;~~MACYS_EXIT_PRE~~;;
get #MACYS_EXIT = ""
;;~~MACYS_CR~~;;
.if not ("1,2" <=> oa$entry_form_mode) then oa$fld_done
else xop "~~MACYS_DONE~~"
;;~~MACYS_DONE~~;;
.if (#MACYS_EXIT eqs "" or #MACYS_EXIT eqs "CR") then
get #MACYS_EXIT="CR" \\oa$fld_done else oa$fld_stay
;;~~MACYS_KEY_0~~;;
.if not ("1,2" <=> oa$entry_form_mode) then oa$fld_exit \ifexit
\.if #MACYS_EXIT eqs "CR" then get #MACYS_EXIT = "" \\oa$fld_exit \ifexit
\xop "~~MACYS_EXIT_PROMPT~~"
;;~~MACYS_EXIT_PROMPT~~;;
.clear 24,1 \get oa$display="Press Y to end without saving your changes: "
\force \.single 24,45,"" \.if oa$script_text eqs "Y" then
get #MACYS_EXIT="" \\oa$fld_exit else .refresh 24,1 \\oa$fld_stay
|