mattm591
27th May 2009 17:38 UTC
Set GroupBox background color
I am wanting to change the background colour for a GroupBox I created with nsDialogs.
I am using this code to try and achieve this (set the background to white).
${NSD_CreateGroupBox} 190u 30u 110u 100u "Plugins:"
>Pop $0
SendMessage$0 EM_SETBKGNDCOLOR 0 "255 255 255"
Can someone please tell me where I have gone wrong and what I need to do to set the background colour.
I also tried SetCtlColors but that didn't work, it just changed the colour of the text and the background of that text on the group box.
Afrow UK
27th May 2009 17:44 UTC
You have to use SetCtlColors. If it doesn't work then it's probably down to XP visual styles.
Stu
mattm591
27th May 2009 17:49 UTC
Thanks for the reply.
"Plugins:"
>Pop $0
SetCtlColors$0 0x000000 0xFFFFFF
>
Would that be correct to set a white background colour?
If so then it must be the XP thing as you said.
Afrow UK
27th May 2009 20:04 UTC
Try redrawing the control:
http://forums.winamp.com/showthread.php?threadid=306403
Stu
mattm591
28th May 2009 09:52 UTC
Thanks for that, I will see if I can get that working.