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

David Whiteman wrote:

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.
How do i go about painting the color on a button using the gc? I didn't think that native components had a gc?



Back to the top