50% OFF!!!

Booking.com

Thursday, December 25, 2014

NSIS | create CENTER aligned text control

I searched on the internet for CENTER LABEL on NSIS,
but didn't find.

I saw that the ${SS_CENTER} style, not working with ${NSD_CreateLabel}
So I build my own code, using the STATIC control.


nsDialogs::CreateControl STATIC ${WS_VISIBLE}|${WS_CHILD}|${SS_CENTER} 0 29 180 439 60 "WELCOME TEXT"
Pop $0
CreateFont $1 "Arial" 9
SendMessage $0 ${WM_SETFONT} $1 1
SetCtlColors $0 0x000000 '0xff0000'


Hope it help...
 

No comments:

Post a Comment