SG_SetGadgetFont

Syntax:

SG_SetGadgetFont(SG_GadgetID_L.l, FontID_L.l)

Parameters:

SG_GadgetID_L

=

The number of the gadget

FontID_L

=

the ID of the font


Description:

Changes the font of the specified Gadget. The UseFont() or FontID() commands can be used to easily obtain a valid FontID.

If SG_GadgetID_L is set to #PB_Default, the font used by newly created gadgets is changed to the new one.

If 'FontID' is set to #PB_Default, then the system default font will be used.

If this gadget supports the use of SetGadgetItemFont(), the use of this command overwrites all itemfonts with the FontID given.


Example:


Remarks:

The first two fontnumbers are used by this lib.

FontStandard = 2

FontSymbol = 1



Supported OS:   Windows