IonicWind Software

IWBasic => General Questions => Topic started by: Andy on July 24, 2018, 09:28:08 am

Title: Groupbox colour
Post by: Andy on July 24, 2018, 09:28:08 am
Hi,

I have several group boxes, and I want to fill the boxes with a light grey colour - can this be done?

When I try to set the colour, all it does is set the text colour.

What I'd like to do is set the area inside the group box to a colour, not the text.

Can it be done?

Thanks,
Andy.
Title: Re: Groupbox colour
Post by: fasecero on July 26, 2018, 06:44:40 am
You can do it by processing the WM_CTLCOLORSTATIC notification.
https://docs.microsoft.com/en-us/windows/desktop/controls/wm-ctlcolorstatic

I had used this to to change the text and background color of a static. The same method should work with a groupbox.
http://www.ionicwind.com/forums/index.php?&topic=6099.0
Title: Re: Groupbox colour
Post by: Andy on July 26, 2018, 08:47:01 am
Thanks Fasecero,

I will have a look at it.

Andy.
:)