Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Cursor-Driven Window Scrolling when Typing into Partially Hidden Entry Fields

IP.com Disclosure Number: IPCOM000113093D
Original Publication Date: 1994-Jul-01
Included in the Prior Art Database: 2005-Mar-27
Document File: 2 page(s) / 64K

Publishing Venue

IBM

Related People

Morgan, SA: AUTHOR [+2]

Abstract

The Common User Access* (CUA) standards, as they relate to OS/2* Presentation Manager* (PM) applications, require that the cursor be visible to the user at all times. When the user is interacting with a sizable window which contains an entry field and the user sizes down the window such that not all of the entry field is visible, the possibility exists that the user could type within the entry field to where the cursor is outside the borders of the window and thus no longer be visible.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 52% of the total text.

Cursor-Driven Window Scrolling when Typing into Partially Hidden
Entry Fields

      The Common User Access* (CUA) standards, as they relate to
OS/2* Presentation Manager* (PM) applications, require that the
cursor be visible to the user at all times.  When the user is
interacting with a sizable window which contains an entry field and
the user sizes down the window such that not all of the entry field
is visible, the possibility exists that the user could type within
the entry field to where the cursor is outside the borders of the
window and thus no longer be visible.

      When the cursor is moved to where it would not be visible to
the user, the window must scroll so that the cursor remains visible
within the entry field.  This disclosure describes an algorithm which
precisely defines how a sizable PM window should scroll as a user
types into a single-line entry field that is positioned in the window
in such a manner that part of the entry field is not visible, and the
keystroke entered into that entry field would cause the cursor to
move to where it would no longer be visible within the window.

      When the user types a keystroke that moves the cursor within an
entry field that is not fully visible in the window, the following
scrolling algorithm is used:

o   Pass the keystroke on to PM to get the default processing of
    displaying the character and moving the cursor as appropriate,
    and then query the location of the cursor.

o   If the cursor is not visible in the window, calculate whether it
    is off the window to the left or to the right.

o   If off to the left, caused by a backspace, left arrow or home key
    for example, scroll the window just enough so that the cursor is
    displayed on th...