Archive: Making the text bold...


Making the text bold...
I'm using the macro from Modern UI to add the Text and SubText to my custom pages (without using Modern UI)


!macro MUI_HEADER_TEXT TEXT SUBTEXT
GetDlgItem $0 $HWNDPARENT 1037
SendMessage $0 ${WM_SETTEXT} 0 "STR:${TEXT}"
GetDlgItem $0 $HWNDPARENT 1038
SendMessage $0 ${WM_SETTEXT} 0 "STR:${SUBTEXT}"
!macroend

Function CustomPage1
!insertmacro MUI_HEADER_TEXT "Logging Options" " Please change settings accordingly"

InstallOptions::dialog "$EXEDIR\settings.ini"
FunctionEnd


How do I get the Text piece to be bold like done with Modern UI?

-Stuart

Use CreateFont and send your font using the WM_SETFONT message.