- Revenera Community
- InstallShield Forum
- Changing a font not working
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Printer Friendly Page
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);
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);