Modified popup process? (AREV Specific)
At 20 JUN 2002 06:19:08PM Michael Slack wrote:
I've just stumbled across across a program that looks like it was written in AREV 1.16 and then just minimally converted to our AREV 3.12 system. The program allows the user to browse our program code table. It looks like it does all of what a popup will do plus a few extra things. The code inside this browse program handles everything. I mean it handles Page-Up, Page-Down, Arrow-Up, Arrow-Down and a bunch of function keys and I'm not sure what all else (since I'm still trying to follow the code).
Is there any way to use a popup for something like this or is there any other system routine that I could use to replace most or all of this home grown program? The browse screen for the most part looks like and acts like a popup. There are some function keys at the bottom. Some of these function keys do things unrelated to the highlighted item and other do thing directly to or with the highlighted item. Plus there is a point at the top of the browse screen that lets the user enter in text to search for the program names containing that text.
What I'm hoping for is if I can find a way to simplify this piece of code without loosing any functionality, then I know of a couple of other programs like this one that I could maybe simplify as well. At this point, if for whatever reason this program or the one of the ones like it ever break, then we are in a world of hurt. I would like to see if we could avoid that if at all possible.
Thank you for your time.
Michael Slack
At 20 JUN 2002 09:13PM Curt Putnam wrote:
1st thought is to isolate all the functions that you want to keep. Use standard Pop.Up functionality for specific selections (call a menu of functions or whatever). Set the popup variables to return to the same item after selection processing is done. Tee of the help key or something for the processing that isn't selection specific.
Next thought is simply clean up the current code, document it, and keep using it.
At 21 JUN 2002 07:13AM Warren wrote:
Familiarize yourself with the system subroutine POPUP_SOFT while your at it.
At 26 JUN 2002 08:00PM Michael Slack wrote:
Thanks for pointing me in the direction of the POP_UP_SOFT function. I finally found it and read about it. Unfortunetly it doesn't do all I need it to. So I'm stuck for the time being with the program I've got. I just hope it never breaks for any reason.
Michael Slack