Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Coloring buttons and other assorted controls

Wednesday, August 13, 2003, 3:06:36 AM, Minh Chiem wrote:

> I'm trying make my screens look more alive by trying to repaint things, 
> however atm I'm only finding that my buttons and toolbars won't change 
> color (I'm using the windows version). Labels, shells and composites 
> work okay. I've attached some test code.

This should be an FAQ somewhere, but this is just a platform
restriction on Windows.  The standard Microsoft Button control just doesn't
support background colors.  You can either paint the color & text yourself
using a GC on the button, or you can develop your own custom widget,
if you've got to have the background color.

David

-- 
Regards,
David                            
mailto:dlwhiteman@xxxxxxxxxxxxxxx



Back to the top