TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Doug Swenson
from: Andrew Grillet
date: 1995-08-12 22:03:28
subject: Re: Scrolling

-=> On 07 Aug 95  00:37:00 Doug Swenson said to All <=-

 DS> When scrolling through text, using the arrow keys, my program falls
 DS> behind the input buffer, causing the annoying effect of scrolling
 DS> after the key has been released.

 DS> The vertical scroll buttons don't have this problem.

 DS> I thought that the SB msgs may have been combined by OS2, so I used
 DS> WinPostMsg for the vertical arrow keys, to use the SB vertical logic.

 DS> There was no change.  What am I missing here?


The program needs to flush its input buffer after performing a scroll. Ideally,
it gets one key, then flushes the buffer, so one command only sits in the queue
making continuous scrolling possible.

Perhaps, the program should count the number of scrolls in the queue and then
lump them to determine the next position.

However, its up to the App what it does, not the OS.

Anyone who writes scroll algorithms like the one in E.EXE should not
be allowed to write code ever again (IMHO).


Andrew
 DS> ___
 DS> X OLX 1.53 X Tried to play my shoehorn... all I got was footnotes!

 DS> -!- Maximus/2 2.02
 DS>  ! Origin: OS/2 Connection {at} Mira Mesa, CA   (1:202/354)



... If you never do nothing, then how do you know when you're finished?
--- Blue Wave/Max v2.12 OS/2 [NR]
* Origin: Me/2 (2:254/259)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 254/259 1 255/1 440/4 141/209 270/101 105/103 42 712/515 711/808 809
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.