Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » change the color of the editor background
change the color of the editor background [message #232838] Wed, 11 April 2007 10:47 Go to next message
Eclipse UserFriend
Originally posted by: alexandre.magillem.com

Hi,
to be able to change the editor background color of my GEF editor, I
have applied setOpaque(true) to my root EditPart figure which is a
FreeFormLayer.
Unfortunately, when I do that, I'm not able to make panning selections
anymore.

Does anyone have a hint ?

Regards.
Christophe Alexandre
Re: change the color of the editor background [message #232962 is a reply to message #232838] Fri, 13 April 2007 19:10 Go to previous messageGo to next message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi,

Use IFigure#setBackgroundColor(Color bg) to change figure's color.

Cheers,
Alex
Re: change the color of the editor background [message #233119 is a reply to message #232962] Tue, 17 April 2007 15:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexandre.magillem.com

Hi Alex,
thanks for your answer.
In fact, this is what I do. But the color does not change graphically
unless I set in my figure :
f.setOpaque(true);
my figure here is a FreeformLayer.
But when I do that, then I cannot perform panning selections anymore.

Regards.
Christophe



Alex Boyko a écrit :
> Hi,
>
> Use IFigure#setBackgroundColor(Color bg) to change figure's color.
>
> Cheers,
> Alex
>
Re: change the color of the editor background [message #233250 is a reply to message #233119] Thu, 19 April 2007 09:46 Go to previous message
Eclipse UserFriend
Originally posted by: alexandre.magillem.com

Hi,
Think I've found an answer to my question.
To change the editor background color, In my root EditPart, I apply :

getViewer().getControl().setBackground(color);

Regards.
Christophe Alexandre


Christophe Alexandre a écrit :
> Hi Alex,
> thanks for your answer.
> In fact, this is what I do. But the color does not change graphically
> unless I set in my figure :
> f.setOpaque(true);
> my figure here is a FreeformLayer.
> But when I do that, then I cannot perform panning selections anymore.
>
> Regards.
> Christophe
>
>
>
> Alex Boyko a écrit :
>> Hi,
>>
>> Use IFigure#setBackgroundColor(Color bg) to change figure's color.
>>
>> Cheers,
>> Alex
>>
Previous Topic:EditPart selection feedback
Next Topic:Draw2d - Html
Goto Forum:
  


Current Time: Fri Apr 19 19:32:46 GMT 2024

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

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

Back to the top