CONTROL SET FONT statement  

Purpose

Select a font to be used for a particular Windows Control.

Syntax

CONTROL SET FONT hDlg, id&, fonthndl&

hDlg

Handle of the dialog in which owns the control.

id&

Unique identifier for the control which was assigned with a CONTROL ADD statement.

fonthndl&

The numeric handle returned by the FONT NEW statement when the font was created.

Remarks

The font specified by fonthndl& is selected to be used by this particular control, until or unless it is changed with another CONTROL SET FONT statement.

You can predefine virtually any number of fonts and attributes by executing FONT NEW statements for each of them.  That makes them ready for immediate use when selected by CONTROL SET FONT, GRAPHIC SET FONT, and XPRINT SET FONT.

See also

DIALOG FONT, FONT END, FONT NEW, GRAPHIC SET FONT, XPRINT SET FONT