Modifying the Appearance of a List Box Window

Designer: Each list box has its own window. Window structure members are set to default values inside the Designer. You can modify these values, either in the Designer (see the Designer User's Guide for more information), or in your code, after you have read the form from the Designer library.

Code: Each list box has its own window. The window is copied from the global window WN_WNP and, by default, has a single-line border, a window attribute of LFLDINACT, and no margins.

The window for a particular list box is accessed with:

lboxp->wnp

You can use any of the set window functions to change the appearance of the list box window. For example, to print a title in the border of the list box window for names, call:

sw_title("Names", LFLDINACT, TOPLEFT, lboxp->wnp);

A complete explanation of the set window functions that change window appearance can be found in Chapter 25, "Changing the Appearance of Windows."


Home Contents Previous Next