Resizing a Window

To resize a window, the user clicks the left mouse button on any corner of the border and holds it down. An outline of the window appears. The user can change the size of the window by dragging that outline to the desired size while holding the button down. When the user releases the left mouse button, the window is redisplayed with the new size.

A beep is sounded if the user attempts to resize a window that does not have the MOU_RESIZE option set to ON.

Note: Resizing a window does not affect the size of the buffer associated with that window. The size of the underlying memory screen or memory file remains the same. Resizing only affects the full dimensions of the window, that is, the area that the window occupies on the screen.

Making a Window Larger

The user can increase the size of the window to the full size of the screen.

If the user makes a window larger than the window buffer, the area outside the window buffer becomes a virtual margin. The video output functions cannot write to the virtual margin area; it behaves exactly as a regular margin, with one exception: regular margins do not change as the user resizes the window, but virtual margins may shrink or grow.

Making a Window Smaller

The user can shrink a window until the interior work area is as small as one row by one column. Any objects contained in the window, whether they were added with the Designer or written directly to the window using video output functions such as v_statt() and v_printf(), are contained in the window buffer. As the user scrolls the window, or resizes the window to make it larger, these objects will again be visible.

For virtual windows, this does not create a problem. A virtual window's buffer may be larger than the interior work area, and the processing function assigned to a virtual window allows the user to scroll through the information in the memory screen.

For basic windows, however, this can produce some unusual results. If the user makes a basic window smaller than the window buffer, the window appears to become a virtual window. Output written to the window goes to the window's buffer, and may cause the buffer to scroll within the work area. However, the processing function for the window does not change when the window is resized. The user is not allowed to scroll through the memory screen, because the processing function for a basic window does not permit scrolling by the user. The user will, however, be able to resize the window larger to make the entire memory screen visible again.

For more information about virtual windows, basic windows, and processing functions, see Chapter 23, "About Windows," Chapter 25, "Changing the Appearance of Windows," and Chapter 26, "Working with Windows."


Home Contents Previous Next