If you just want to try it out to see how it works, find an existing load-all subfile in your play library which has 3 unused columns on the right side of the screen/window. Add the "*SCRBAR" as the first parm on the SFLEND keyword, and recompile.

That should let you see how it works. The slider & tray might be out of kilter, but that s fixable if you like what you are seeing.

It really is that simple. The only thing I had trouble getting used to was to leave three blanks columns on the right side for the scroll bar. You do lose three columns of real estate, but you gain one row since you don't need a line for MORE.../BOTTOM


On 1/15/2014 2:48 PM, Gary Thompson wrote:
Thanks Booth, will make my first scroll bar move a little faster.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Booth Martin
Sent: Wednesday, January 15, 2014 1:43 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Subfile more/bottom problem

Paging keys are built-in. Its automatic. You don't need to do
anything about the,m. To try out a scroll bar you only need to do one
or two things.
*

1) SFLEND(*SCRBAR *MORE) instead of SFLEND(*MORE)


and, 2) if you haven't already, populate the SFLSIZ with the proper number of records:
A SFLSIZ(&SF1RECS)
...
A SF1RECS 5S 0P
**

...
*

* Save values.
C eval SF1RECS = SF1NUM
*

(That makes the slider the correct proportion for the tray)
**

**

*

On 1/15/2014 2:27 PM, Gary Thompson wrote:
I have a recent subfile app that as soon as I can I am making a scroll
bar version - should improve ability of warehouse to review pallet
details - not yet sure how that will go over - I never see them use a
mouse . . . but when I use the app, I always wish I could scroll to
see all pallet details . . . any way to make PageUp/Down move the
scroll bar ?

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Booth Martin
Sent: Wednesday, January 15, 2014 1:16 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Subfile more/bottom problem

Is the SFLEND conditioned with an indicator, set to the correct condition?

Consider using a scroll bar? Users understand them, and you do not
need to leave an empty line at the bottom of the DSPF for the
MORE.../BOTTOM line. (
http://martinvt.com/Subfiles/Scroll_Bar/scroll_bar.html )

Yes, I know. I am scroll bar obsessed. Yes. I know. Green screen is dead.

On 1/15/2014 10:30 AM, James H. H. Lampert wrote:
I just happened to notice that one of my "load all pages at once"
subfile screens is showing "more" at the bottom of the first screen
when there are only three records loaded.

It won't let me page down, but it's still showing "more," rather than
"bottom."

In fact, on closer inspection, I see that if I load it with more than
a full page of records, it shows "more" on the bottom of the second
page, even though there's less than a page.

I'm not sure, but I think the display file record definitions from
which I derived this screen were originally for "page at a time"
mode, and that I probably screwed something up in the translation,
but I'm not sure where to look.

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

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



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.