change the color of the editor background [message #232838] |
Wed, 11 April 2007 10:47  |
Eclipse User |
|
|
|
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 #233119 is a reply to message #232962] |
Tue, 17 April 2007 15:14   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>>
|
|
|
Powered by
FUDForum. Page generated in 0.01756 seconds