How to #CCM_SETBKCOLOR for Button ?

Just starting out? Need help? Post your questions and find answers here.
millie78526
User
User
Posts: 23
Joined: Thu Apr 18, 2024 9:12 pm

How to #CCM_SETBKCOLOR for Button ?

Post by millie78526 »

TIA...:
How to #CCM_SETBKCOLOR for Button ?
I see this Example by Andre 2003
SendMessage_(GadgetID(9),#CCM_SETBKCOLOR,0,RGB(60,50,0))
that colors a ProgressBar .
Is there one for Button ?
Thanks...
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

Re: How to #CCM_SETBKCOLOR for Button ?

Post by boddhi »

Hello,

It's not possible to change front and backcolor for buttons. It's why PB doesn't propose it.
You have to create them by yourself. Various possibilities to do that.
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
AZJIO
Addict
Addict
Posts: 2143
Joined: Sun May 14, 2017 1:48 am

Re: How to #CCM_SETBKCOLOR for Button ?

Post by AZJIO »

BarryG
Addict
Addict
Posts: 4123
Joined: Thu Apr 18, 2019 8:17 am

Re: How to #CCM_SETBKCOLOR for Button ?

Post by BarryG »

I just use ButtonImageGadgets() because it's easier and less code.
Post Reply