Automatic Scrolling to Current Input Position
Whenever scrolling has caused the current input position to no longer display, (for example, clicking scroll bar or selecting partial text operation) and some event has occurred that causes input at the current input position (for example, click Mouse or hit key on keyboard), the mvTerm window automatically scrolls to the screen page containing the current input position.
Scrolling and Clearing the Screen Buffer
Menu Entries
New menu entries have been added to the View menu that scroll to selected screen buffer positions and clear the screen buffer. These new menu entries include: scroll backward one page, scroll forwards one page, scroll to the top of the back page section, scroll to the current input position, and clear screen buffer.
Toolbar Buttons
There are five toolbar buttons that allow you to scroll to these selected screen buffer positions:
Scroll backward one page.
Scroll forward one page.
Scroll to the top of the back page.
Scroll to the current input position.
Clear screen buffer.
UMESSAGE Message
The new UMESSAGE message that has been added (WM.SCREEN.CONTROL) is recognized as a screen control type message. The message’s parameter specifies the type of screen control operation to be performed. The settings for the parameter are:
SC.BACKWARD.ROW |
Scroll backward one row. |
SC.FORWARD.ROW |
Scroll forward one row. |
SC.BACKWARD.PAGE |
Scroll backward one page. |
SC.FORWARD.PAGE |
Scroll forward one page. |
SC.TOP |
Scroll to the top of the back page. |
SC.CURRENT |
Scroll to the current input position. |
SC.CLEAR.BUFFER |
Clear entire screen buffer. |
The message and parameter constants have been defined in the BASICLIB VTERM.MSGS mvBASIC include item.
Clearing Screen Buffer
To provide the capability to easily search through the back pages, mvTerm performs special scrolling for selected keyboard key sequences, menu entries, and toolbar buttons. These search capabilities include scrolling backwards and forwards one page, scrolling to the top of the back pages (top of screen buffer), and scrolling to the current input position (bottom of the screen buffer).
To provide the capability to clear all information in the screen buffer and position the cursor at the upper left had corner of the screen, a menu entry and toolbar button have been provided.
Special Keyboard Key Sequences
The four special keyboard key sequences that scroll to selected screen buffer positions are:
Page Up |
Scrolls backward one page. |
Page Down |
Scrolls forward one page. |
<CTRL> Home |
Scrolls to the top of the back page. |
<CTRL> End |
Scrolls to the current input position. |
If a special keyboard key sequences has a value defined for it in the Function Key Editor property page, the handling for the function key definition overrides the handling for scrolling.
See Also