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. If you specify a FontHndl& of zero, the font is changed back to the original default font chosen by PowerBASIC. 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 DEFAULT FONT, FONT END, FONT NEW, GRAPHIC SET FONT, XPRINT SET FONT