Re: newbie: Win32Lib: change BACKGROUND color of CONTROL(s)?

new topic     » goto parent     » topic index » view thread      » older message » newer message

David Cuny wrote:

> Dan Moyer wrote:
>
> > In Win32Lib, how can I specify the BACKGROUND
> > COLOR of a CONTROL (like a label or button)?  I've
> > tried "setBackColor", & even "setWindowBackColor",
> > with no luck.
>
> I was a bit suprised to find that feature lacking, but I'm going to guess
> that I actually had a reason for doing that, like respecting the color theme
> that the user selected. In a weak attempt to justify my action, I'll mention
> that I can't think of any program I've recently used that changed the color
> of any of it's buttons...
>
> Win32Lib actually does sets the background colors for buttons (apparent when
> you work with radio and check boxes) and static controls (such as labels),
> but only so they match the color of the parent window.
>
> I'm not against adding it, however. Is there a compelling reason you can
> think of for it?
>

Not one single reason....except that it looks pretty!

And plus, new programmers are always drawn to a language by things like that...
"Wow, you mean I can actually change the color of those buttons! Nifty!"

It's definitely not a Must Have item, but I think it does fall under the Neat
Things categroy.

>
> Thanks!
>
> -- David Cuny

Greg Phillips

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu