April 18, 2024, 01:19:00 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Groupbox colour

Started by Andy, July 24, 2018, 09:28:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

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.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

fasecero

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

Andy

Thanks Fasecero,

I will have a look at it.

Andy.
:)
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.