TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: John Poltorak
from: Jonathan de Boyne Pollard
date: 1995-04-19 09:56:26
subject: Through The Round Window

JP>
  > This does not really help a coder as far as a standard way
  > of diplaying a screen when a user has pressed END, whilst
  > viewing a scrollable list. In particular should the last
  > item appear at the bottom of a full page, or separately at
  > the start of a new page ?
JP>

  Unless the last item was already visible (in which case, you shouldn't
  need to scroll the list at all), scroll the list until the last item
  is visible at the bottom.

  When people press [END], they usually expect to see the cursor at or
  near to the bottom of whatever they are looking at, rather than at the
  top.

  The usual model that people tend to use with these things is the
  "document-cursor-window" model.  In other words, the cursor moves
  about a document, only part of which is visible.  Attempting to move
  the cursor outside the bounds of the current window onto the document
  causes the window to scroll in the appropriate direction until the
  cursor is in the visible region once again.  Conversely, scrolling the
  window causes the cursor to remain where it is on the document as a
  whole until it reaches the boundaries of the window, whereupon it is
  dragged along with the window.

  You then have an easy model for "cursor movement" keys, such as the
  arrow keys, and [HOME] and [END].  Since they move the cursor relative
  to the underlying document, and the window follows the cursor by
  auto-scrolling in order to keep it visible, the positioning is
  obvious.

  > JdeBP <
___
 X MegaMail 2.10 #0: Oklahoma? Pah! A bomb exploded in Belfast EVERY WEEK.
--- Maximus/2 2.02
* Origin: DoNoR/2,Woking UK (44-1483-722344) (2:440/4)
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: 440/4 141/209 270/101 105/103 42 712/515 711/808 809 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™.