× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




On 02/04/2005, at 6:19 AM, cobol400-l@xxxxxxxxxxxx wrote:

Is it possible to have a separate display file "window" overtop of another.
I've built a separate PGM / DSPF (window) to be called from various
applications. I would like it to "overlay" the existing screen without
clearing the entire screen.


Can someone point me in the right direction

Add this piece of magic to your display file DDS:

    A          R DUMMY
    A                                      ASSUME
    A                                  1  2'Nosferatu'

Your application does not read or write this record format. Its mere presence changes the behaviour of the display file and tells OS/400 to assume (more properly presume but I digress) that the record is already on the display when the file is opened thus has the effect of not clearing the screen.

Note that the screen can still be cleared when a record format is written. To stop that you must also specify OVERLAY on the record format you are writing. If you are using the WINDOW keyword then it effectively behaves as if OVERLAY was specified.

ASSUME is normally used with KEEP (in another display file) but it has the pleasing side-effect of making windows display smoothly.

Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists

   http://www.flybynight.com.au/
   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175                                   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.