Setting The Viewport To Follow The Cursor; Using Movscrn.exe; Within An Application; Locking The Viewport - Intermec PEN*KEY 6400 Programmer's Reference Manual

Intermec 6400: reference guide
Hide thumbs Also See for PEN*KEY 6400:
Table of Contents

Advertisement

SECTION 4
Panning can also be programmed into an application, by utilizing the APIs listed
in this section and in the BIOS Interrupt Support section of this publication.
The "Scroll Window" settings, in the "LCD Parms" menu, determine the
increment at which it scrolls.

Setting the Viewport to Follow the Cursor

The specified coordinates merely provide a starting point for the viewport. When
the cursor position exceeds the boundary defined by the parameters, the
viewport follows it as text is entered.

Using MOVSCRN.EXE

Position the viewport at at a specified location on the logical display, and allow it
to follow the cursor, with the command:
MOVSCRN
where: ww = row for the top left corner;
MOVSCRN.EXE requires that row/column for both the wwxx and the yyzz
parameters be in the specific order shown above.

Within an Application

To set the viewport to follow the cursor, within an application, supply the
following register values and call INT 10h.
An application can set the viewport to follow the cursor, using an API BIOS call.
Set the following registers and call INT 10h to set the viewport size:
On entry:
AX = 1202h
BH = 00h
BL = 0F6h
CH = top row
CL = left col
DH = bottom row
DL = right col
The CX and DX registers define the window in which the cursor can move
without the viewport moving. Once the cursor moves outside, the viewport
follows.
When the cursor reaches the boundary defined by registers CH, CL, DH, and DL,
the viewport will follow it as text is entered.

Locking the Viewport

After the previous code has been executed, you should lock it in place. Set the
following registers and call INT 10h to accomplishes this:
On entry:
AX = 1206h
BH = 00h
BL = 0F6h
2 wwxx yyzz
xx = the column for the top right left;
yy = row for the bottom right corner;
zz = column for the bottom right corner.
Communications and Device Support
PEN*KEYR 6400 Programmer's Reference Guide
4-21

Advertisement

Table of Contents
loading

Table of Contents