|
I think I've been looking in the wrong places for the problem. Icopied a
working display file window and renamed it to the problem window.This
window also causes the blank screen. So, I'm thinking the problem isin the
calling program, not in the called window.
Since windows display correctly when called from "format 1", I'll seeif
this window displays correctly when it is called from that, ratherthan
"format 2".
Mark Plank
On Fri, Jun 3, 2011 at 10:52 AM, J M Plank<plank.computer@xxxxxxxxx>wrote:
IA coworker is having problems getting a window to display properly.
program withknow we are missing something obvious. There is an interactive
problem isa display file that can call other programs with windows. The
with the called program and window. All the existing windows display
checkedproperly, but the new window blanks out the screen behind it. I've
readthe archives and Googled this, and had lots of hits - everything I've
arewe either have in the code or tried unsuccessfully (which means we
likely overlooking the obvious).
windowsThe calling program has two different record formats used when the
are called. Format 1 is used for the calls to existing programs with
haswindows that display correctly. Format 2 calls the new program which
them isthe window with the blank screen. The only difference I see between
result,that format 2 has the KEEP keyword. I've taken it out with the same
and added it to format 1, and the called windows there still display
correctly.
subfilesThe new window has one field. The existing windows either have
problem.or multiple fields, but I don't think that has any bearing on the
We've compared the source for two correctly displaying windows to the
source for the new window and nothing obvious jumps out at us.
All the display files have RSTDSP *YES.
The new display file has the following record format (not called):
A R DUMMY
A ASSUME
A 15 1' '
This is the record format displaying with a blank screen:
A R DISPLAYR
A OVERLAY
A WINDOW(3 6 8 32)
<== (also used WINDOW(*DFT 8 32)
A KEEP
(*DSPATRA WDWBORDER((*COLOR RED)
RI)-
A (*CHAR ' '))
A USRRSTDSP
bothWe have the same result with the overlay keyword removed, and with
the KEEP and USRRSTDSP keywords removed.
This existing window displays correctly, even without the KEEP and
FormatUSRRSTDSP keywords. But the calling program uses Format 1 instead of
2.
A R COETCM01
A OVERLAY
A WINDOW(*DFT 11 60)
(*DSPATRA WDWBORDER((*COLOR RED)
RI)-
A (*CHAR ' '))
Any ideas of what else we should be looking for?
Thanks.
Mark Plank
Maple Leaf Farms
Milford, IN
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.