× 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.



Not sure if this is what you are looking to do..?

Message window 80/132 <http://www.martinvt.com/SQL_-simple-/SQL_Msg_Window/sql_msg_window.html>

I suspect you are looking to also have the data "fit" on both 80 & 132?    I think I might consider having a pair of subfile/control records with a c-spec like this:

    If WinSize = 80;
        exfmt WIN80;
    else;
        exfmt WIN132;
    endif;

(Message window shows a way to know the screen's size.)

On 4/16/2018 5:14 PM, Thomas Garvey wrote:
Hi,

Trying to define a display file that adapts to the screen size capability of the user's display.
I can't seem to find a way to get a literal defined that will appear in one location for one display size, but another location for the default display size.
It looks like anything that must be locatable based on display size must be a variable field, the contents of which are populated in the RPGLE program.
I'm spending too much time on this, I'm sure, but it shouldn't be too hard to do.  The subfile record should look different if I have 132 position available,
than when I am only on an 80 character display. I get the actual record layout must be the same for both display conditions.

Anybody have an example of this working they wouldn't mind sharing?



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.