4GL windows display problem
Posted in 1991
Path: emory!att!pacbell.com!ames!elroy.jpl.nasa.gov!wvus!george From: george@wvus.org Newsgroups: comp.databases.informix Message-ID: <1991Nov13.072027.18891@wvus.org> Date: 13 Nov 91 07:20:27 GMT Sender: george@wvus.org (George Peavey) Organization: World Vision U.S. I'm currently in the process of building what seems to be a rather complex application in Informix 4GL (4.0). I have a wide table, approximately 60 fields, where it's impossible to fit all the fields into a single screen of display. The way that I'm going about doing this is doing an "input by name" for the fields of the first window, then following the last field of the first win- dow, doing "after field ... call input2()", where "input2" is a second win- dow with its own "input by name" for a second block of variables. After the last vairable of input2, I call input3, opening window #3, and likewise, at the end. with window #4 "Input by name" works fine, but where I'm making a query, I'm having problems. Namely, in the case of where I've made a query, and then want to see the results of my query for the variables in windows #2, #3, or #4. I have a menu command called "Screen" which calls a function called "change_window", which subsequently executes a "current window is", naming the appropriate window. In program execution, it all works as it's supposed to, displaying the re- quested window, and the various screen variables, but as soon as that happens, the screen is re-painted with window #1, regardless of which has been named by "current window" (except if window #1 is requested as the current screen, then there's no re-paint). The traces I've put in (I don't have the debugger) tell me that the re-paint is happening following completion of the code associated with my "Screen" menu command, when program control is returned to the menu statement. I should also note that my forms being used are built so that they take up the entire allowed available space on the screen. Also, I'm opening my windows with "open window ... with form at ...", rather than opening my window and form searately, and doing a "display form". What am I missing here? How do I solve this problem? Thanks in advance. George Peavy ps -- please route email responses to "george@lfa.wciu.edu"