Sysmets4
--------

This is another Win32 assembly demo, which is based on the the "C" example in 
Charles Petzold's "Programming Windows" 5th edition.

It demonstrates the use on the scroll bars for moving data so that hidden data becomes more
visible within the application window. This example is a development of Sysmets3, in that it
has both vertical and horizontal scroll bars and now reponds to keyboard input.

To test, it run the program and then use the mouse or keyboard to test the following.

Vertical Scrolling

1. Click the lower mouse arrow and the displayed data will move up one line.
2. Click the upper mouse arrow and the displayed data will move down 1 line.      
3. Click the scroll bar between the "Thumb" and the bottom and data will move up 1 page.
4. Click the scroll bar between the "Thumb" and the top and the data will move down 1 page.
5. Drag the "Thumb" with the mouse to move the data up or down.

Horizontal Scrolling

6. Click the left mouse arrow to move data to the right by 1 column.
7. Click the right mouse arrow to move data to the left by 1 column. 
8. Click the scroll bar between the "Thumb" and the right, to move data to the left.
9. Click the scroll bar between the "Thumb" and the left,  to move data to the right.
10.Drag the "Thumb" with the mouse to move the data left or right.

Keyboard Control

11."Page up" key moves display up 1 page.
12."Page down" moves display down 1 page.
13."Home" moves to start of document.
14."End"  moves to end of document.
15. Down arrow moves down 1 line.
16. Up arrow moves up 1 line.
17. Left arrow to move display to the right (by page)
18. Right arrow to move data to the left (by page)

Note.

Typematic action is also possible if either the LH mouse button or the approriate keyboard
key is help down; the scroll bar must be visible for some of these action to be enabled 
- i.e a restricted display.
    
Files included are:-

Sysmets4.exe	The demo
Sysmets4.asm	The source
Sysmets.inc	The System metrics data
Makefile	

The size of the program is 10.0K compared to 28k for the "C" version !

Appart for being a demo, this program reveals useful data about the various graphical items
in Windows, such as the display size in pixels etc. Have fun. 
    
Ron Thomas.

Ron_Thom@Compuserve.com

www.rbthomas.freeserve.co.uk

18/4/99

 
             

