Re: Screen array problem (repost)
Posted in 1997
Richard Hawkins wrote: > > I've put together a screen which basically shows seven > days of clocking information. I've used a screen array > where the rows go down the screen instead of the usual > across i.e. > > MON TUE WED THU > [f000 ][f000 ][f000 ][f000 ] > [f001 ][f001 ][f001 ][f001 ] > [f002 ][f002 ][f002 ][f002 ] > [f003 ][f003 ][f003 ][f003 ] > [f004 ][f004 ][f004 ][f004 ] > > Now if the cursor is in field 'mon f0000' and I press > TAB or the right arrow, I should want it to go into > the tue f000. Instead it goes into mon f0001. This > is of course correct if it was set out as normal, > f000 to the left of f0001. But in this case it > isn't. If the cursor is in wed f003 and I press the > left arrow, I want it to go into f003 tue, but it > goes into f002 wed (upwards). > > I just wondered if it's possible to redefine the arrow > keys within the program. Or maybe code a way around > it. I assume we are talking about 4GL! In the AFTER FIELD clause for each field use the function fgl_lastkey to determine in which direction the user wants to go and execute an appropriate NEXT FIELD statement. Art S. Kagel