Mouse Processing Basics

Vermont Views uses event loops to detect keyboard or mouse input and calls functions to perform the desired tasks. When a mouse is used in a Vermont Views application, a mouse handler acts as an interface between the mouse interrupts and the application program.

During the event loop, there is always an active window; that is, the form, menu or window with which you are currently interacting. When the event loop detects a mouse event, it determines which window the mouse was in when the event occurred. If the window was one other than the active window, it determines if it is possible to make the new window active. If it can, the current window is suspended and processing on the new window is initiated. You must leave the new window and re-activate the first window to finish processing the first window.

The function called when the mouse button is depressed depends on the location of the mouse. The mouse can operate on the following objects: fields, window borders, interior of windows, scroll bars, and choice lists. The mouse can also be used to get help.


Home Contents Previous Next