Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Changing the background color of the wizard dialog
Changing the background color of the wizard dialog [message #481558] Fri, 21 August 2009 14:16 Go to next message
Anders Baumann is currently offline Anders BaumannFriend
Messages: 55
Registered: July 2009
Member
Hi All.
I would like to change the background color of the whole wizard dialog. The
content area is no problem, but I don't know how to change the color of the
button panel and the panel surrounding the content area. Unfortunaltely the
method WizardDialog#createPreviousAndNextButtons is private, so it is not so
easy to change unless I copy-paste this method into my implementation of
WizardDialog. Not a very attactive solution. Should I instead recursively
traverse the object structure and set the background color? Any good
suggestions?

Thanks in advance,
Anders Baumann
Re: Changing the background color of the wizard dialog [message #481569 is a reply to message #481558] Fri, 21 August 2009 14:57 Go to previous messageGo to next message
Anders Baumann is currently offline Anders BaumannFriend
Messages: 55
Registered: July 2009
Member
I figured it out. The recursion solution actually works pretty well.

Anders


"Anders Baumann" <anb@maconomy.dk> wrote in message
news:h6ma85$4bj$1@build.eclipse.org...
> Hi All.
> I would like to change the background color of the whole wizard dialog.
> The content area is no problem, but I don't know how to change the color
> of the button panel and the panel surrounding the content area.
> Unfortunaltely the method WizardDialog#createPreviousAndNextButtons is
> private, so it is not so easy to change unless I copy-paste this method
> into my implementation of WizardDialog. Not a very attactive solution.
> Should I instead recursively traverse the object structure and set the
> background color? Any good suggestions?
>
> Thanks in advance,
> Anders Baumann
>
>
>
Re: Changing the background color of the wizard dialog [message #482998 is a reply to message #481569] Sat, 29 August 2009 01:31 Go to previous message
Philipp Kursawe is currently offline Philipp KursaweFriend
Messages: 135
Registered: July 2009
Senior Member
Anders Baumann wrote:
> I figured it out. The recursion solution actually works pretty well.
>
> Anders
>
>

I usally set the background mode of the dialogs shell to
SWT.INHERIT_FORCE. And then set the shells background colour. All
controls will inherit the shells background colour then.
Previous Topic:TableViewer Inline Editting Snippet013
Next Topic:TreeViewer Auto Scroll
Goto Forum:
  


Current Time: Thu Nov 27 13:32:39 GMT 2014

Powered by FUDForum. Page generated in 0.03875 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software