Designer: You can create windows in the Designer and use them in your application. You can also create windows in your code by following the steps outlined below. The call to dl_wnget() will allocate a memory screen of the appropriate size, taking into consideration the borders and margins on the window. Both basic and virtual windows can be created using the Designer.
Code: To incorporate windows in your applications, allocate and initialize a window structure using one of the window definition functions,wn_def(), wn_vdef(), wn_nbdef(), or wn_mfdef(). In the call, you specify the location of the window on the screen, the window size, background color, and the border style you want. All other members of the window structure are set to defaults.
When using Vermont Views video output functions, all information written to a window is saved in the window's buffer. This allows you to write to windows that are obscured by other windows or even write to windows that are not on the screen at all. When a window becomes visible, its contents will be displayed.
Note: If a window is using a memory file as its buffer instead of a memory screen, you cannot write directly to the window. You should update the memory file instead, and then flush the contents of the memory file to the screen. For more information on working with windows that use memory files as their buffers, refer to Chapter 45, "Creating and Viewing Memory Files."