Changing the Logical Attribute Array for the Window

An individual window can use its own logical attribute definitions.

Designer: By default, Designer windows use the logical attribute array stored in the Designer library that contains the window. To specify a different logical attribute array, use the function sw_latt() described below.

Code: To specify the logical attribute array to use for a window, use the set window logical attribute array function, sw_latt():

void sw_latt(latt_array, wnp)
 
UCHAR latt_array;
/* Logical attribute array to use for window
*/
WINDOWPTR wnp;
/* Pointer to a window
*/

If you have changed the array in use for a window, you can change it back to the system logical attribute array by specifying LATT_SYS for latt_array.

Refer to Chapter 46, "Controlling Color with Logical Attributes," for information on how to create a new logical attribute array.


Home Contents Previous Next