Archive: changing font size in textbox on custome page


changing font size in textbox on custome page
Im trying to increase the font size in a textbox. I tried a couple of things but I can't see how to get the contol on the textbox

I used the following to change the font in say the next button:

GetDlgItem $0 $HWNDPARENT 1
CreateFont $1 "Times New Roman" "10" "700"
SendMessage $0 ${WM_SETFONT} $1 1

but can figure out how to apply to the code below:

StrCpy $code "Please type your activation code here"


Function page

nsDialogs::Create 1044
Pop $Dialog
${If} $Dialog == error
Abort
${EndIF}
${NSD_CreateText} 37 230 150 20 $code
Pop $Text5
${NSD_SetFocus} $Text5
${NSD_SetTextLimit} $Text5 8
Pop $Image
${NSD_SetImage} $Image $PLUGINSDIR\page2 $ImageHandle
nsDialogs::Show
${NSD_FreeImage} $ImageHandle

FunctionEnd

Thx










FunctionEnd


Just pass the handle from the control you created to SendMessage.

CreateFont $1 "Times New Roman" "10" "700"
SendMessage $Text5 ${WM_SETFONT} $1 1


PaR

Thx. works great.