C
#define GOLSetScheme(pObj, pScheme) ((OBJ_HEADER *)pObj)->pGolScheme = pScheme
Overview
This macro sets the GOL scheme to be used for the object.
Input Parameters
Input Parameters |
Description |
pObj |
Pointer to the object of interest. |
pScheme |
Pointer to the style scheme to be used. |
Returns
none
Preconditions
none
Side Effects
none
Example
extern FONT_FLASH Gentium12; GOL_SCHEME *pScheme1; BUTTON *pButton; pScheme1 = GOLCreateScheme(); pScheme1->pFont = &Gentium12; // assume button is created and initialized // reassign the scheme used by pButton to pScheme1 GOLSetScheme(pButton, pScheme1);