I working on a project that is multiple search fields vertically on the left and a subfile displayed in a vertically on the right.
I can get the information to work perfectly if both are created in separate windows with a separate header and footer. With the WDWBORDER((*CHAR ' ')) it even looks like one screen. I can toggle between the two screens so that data can be selected from the subfile.
I really want to use PSHBTNFLD as well and I cannot get that to work with the two windows. I think that is because the buttons are in the footer and it is not active? I am using *NORSTCSR so that no matter where the cursor is function keys work. Is there a way that I can make PSHBTNFLD work no matter where the cursor is or which screen is active? Do I have to return cursor location to compare if the cursor is outside of a window so that I make the buttons active or recognize location and pretend the button was pushed?
Please help my head hurts...
I can get the information to work perfectly if both are created in separate windows with a separate header and footer. With the WDWBORDER((*CHAR ' ')) it even looks like one screen. I can toggle between the two screens so that data can be selected from the subfile.
I really want to use PSHBTNFLD as well and I cannot get that to work with the two windows. I think that is because the buttons are in the footer and it is not active? I am using *NORSTCSR so that no matter where the cursor is function keys work. Is there a way that I can make PSHBTNFLD work no matter where the cursor is or which screen is active? Do I have to return cursor location to compare if the cursor is outside of a window so that I make the buttons active or recognize location and pretend the button was pushed?
Please help my head hurts...
Comment