Re: how do i exit pop up window without escaping
Posted in 1997
Stafford Wright wrote: >> >> I would be delirious if anyone could help me with the following: >> >> I am writing a menu system and am trying to use a display array >> statement to write to a window using data from a menu table. The >> problem is if the array is large then one would have use ones arrow >> keys too extensively to get to the right option before being able to >> hit escape. >> >> What I would like is some way that the display array could just >> display the menu options and then exit out of the display without one >> having to hit escape and the user could then enter a number option >> manually outside the display.. >> Displaying an ARRAY without 'getting into it' is fairly simple. Instead of using the DISPLAY ARRAY statement, use INPUT ARRAY g_arr WITHOUT DEFAULTS FROM scr_arr.* BEFORE ROW EXIT INPUT ... Caution : What if the screen array cannot display all the menu items? Consider : Add an extra field to the array. Use the INPUT ARRAY stmt. Make the field which shows the menu descriptions NO ENTRY. Allow the user to activate menu by either 1. Pressing a key (in which case the current row's menuitem is activated) (ON KEY) 2. Entering a option number reflecting the menuoption to be activated. (AFTER FIELD) Hth ---------------------- Rudy Fernandes GIC, Kuwait ----------------------