|
Yes the code Mark linked to shows the check being called from the popup--
window.
TLDR;
The key to making our popup window display in the correct mode requires
the following steps:
1. The (popup) display file should be user open (UsrOpn on the F spec)
so that we can set the size mode before the file is opened
2. Detect the current screen mode size by using the
Screen_SizeIs27x132 functio
3. Set the display mode size of our popup window program to the
current mode
4. Open the display file
5. Display the popup screen
Ignore what's being done in the test driver.
The QsnRtvMod API mentioned by another poster won't work, it simply tells
you if a display supports 27x132.
I've used that to display a message asking the user to call the help desk
to get their session reconfigured as I had a new application that only
worked on 27x132.
HTH,
Charles
On Thu, Aug 28, 2025 at 6:57 AM Justin Taylor <jtaylor.0ab@xxxxxxxxx>
wrote:
After reading the doc, I'm not sure if that API called from the window pgm
will detect the screen of the calling program. I'll have to test it and
see. We may have to add an optional parm to the window pgm to override
the
default display size.
Thanks
On Wed, Aug 27, 2025 at 5:12 PM Mark Waterbury via RPG400-L <
rpg400-l@xxxxxxxxxxxxxxxxxx> wrote:
Justin,https://web.archive.org/web/20120116114604/http://provatosys.com/retrieve.html
The QSNRTVMOD will give you that information.
Sample code can be found here:
HTH,--
Mark S. Waterbury
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: 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
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.