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



Good point, Chris!


To Patrik - 5250 screens can have windows - rectangular areas that are smaller than the whole screen, usually with some kind of border. This isn't MS Windows! :)


Cheers
Vern


On Mon, 9 Oct, 2023 at 1:24 PM, Christopher Doleshal <christopher.doleshal@xxxxxxxxxxxxx> wrote:


To: rpg programming on ibm i



How is it not related?

-Chris Doleshal






-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx<mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx>> On Behalf Of Patrik Schindler
Sent: Monday, October 9, 2023 2:20 PM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx<mailto:rpg400-l@xxxxxxxxxxxxxxxxxx>>
Subject: Re: Message subfile with WINDOW and DSPMOD

WARNING: EXTERNAL EMAIL. Do NOT CLICK on links or open attachments unless you are expecting it or have verified with the sender.


Hello Doug,

not really related to RPG…


Am 09.10.2023 um 18:20 schrieb DEnglander--- via RPG400-L <rpg400-l@xxxxxxxxxxxxxxxxxx<mailto:rpg400-l@xxxxxxxxxxxxxxxxxx>>:

I am rewriting a window pop-up program to allow it to display on either 24x80 or 27x132 based on a parameter passed into the ILERPG program.

When the program is called for 24x80 I have the window one size, and when it is called for 27x132, the window is longer on the screen [more rows], but not any wider.

I want to have a message subfile also appear within the pop-up, but have it display on a line within the 24x80 size, but two or 3 lines lower on the 27x132 screen size.

I was thinking of using SFLMSGRCD and passing a program defined field to it to contain the dynamic line number, but that option is not allowed with the SFLMSGRCD keyword.

Has anyone done this? I am thinking the only way to do this is to define two DSPF formats for this pop-up, with the different SFLMSGRCD values, but that seems redundant.

You can code two location lines per element. See

https://www.ibm.com/resources/publications/OutputPubsDetails?PubID=SC41571501

PDF Page 58 "Specifying Valid Screen Sizes".

With some effort you can probably make use of a wider display with conditional overlapping fields. I've not yet tried that, though.

:wq! PoC

--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx<mailto:RPG400-L@xxxxxxxxxxxxxxxxxx> To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx<mailto:RPG400-L-request@xxxxxxxxxxxxxxxxxx>
Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any subscription related questions.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.