Mouse support is available for PCDOS users. To enable the mouse, simply #include the header file vv_mouse.h before vv_main.h in your main program. vv_mouse.h installs the mouse handler and the event table entries required for mouse actions.
Vermont Views can function with one, two or three button mice. Most functions, except help activation, are initiated by the left button. Help is activated by the right button. The three types of mouse actions that the user can perform are as follows:
| Click | Pressing and releasing the button without moving the mouse while the button is depressed is considered a click. Actions associated with the click take place when the mouse button is depressed; the up operation is ignored. |
| Double Click | A double click consists of two rapid clicks at the same position. There is a time limit within which these two clicks must occur for the mouse handler to detect a double click and not interpret them as two single clicks. |
| Drag Operation | Holding down the mouse button while simultaneously moving the mouse is considered a drag operation. Dragging is used to perform an interactive function, such as dragging or resizing a window. When the button is released, the new size or position is accepted. |
If you want the user to be able to resize or drag a window you must turn on the window options that allow dragging and resizing and put a border on the window. The resize and drag operations require the user to click on the border to start the operation.
To learn more about mouse support, see Chapter 43, "The Mouse (PCDOS Only)." To learn more about adding a border to a window, see Chapter 25, "Changing the Appearance of Windows."