Changing a font not working
I am trying to change the font on a text area control. The font is not changing though. Can someone take a look at my code below?
#define dlgBoxId 225;
hCtrl = GetFont("Arial",17,STYLE_UNDERLINE);
Re: Changing a font not working
Dialog and its controls need to be initialized before font is set. Can you try CtrlSetFont after EzDefineDialog call during dialog initialization (DLG_INIT event) as shown in the below sample.
hwndDlg = CmdGetHwndDlg(szDialogName);
SdGeneralInit(szDialogName, hwndDlg, 0, "");
CtrlSetFont (szDialogName, hFont1, 1566);