change BackgroundColor dynamically [message #226248] |
Wed, 08 November 2006 16:29 |
Eclipse User |
|
|
|
Originally posted by: mouna.feki.siemens.com
hi,
My figure is a rectangle(has as BackgroundColor green)
how can i change dynamically the backgroundColor of my figure, when the
cursor is moved over it? (the Figure will be red "only !!!" when the
cursor over).
Thanks
Mouna
|
|
|
|
Re: change BackgroundColor dynamically [message #226267 is a reply to message #226248] |
Wed, 08 November 2006 18:39 |
Eclipse User |
|
|
|
Originally posted by: none.ibm.com
If you are using GEF with draw2d, you should respond to requests to update
your figure's color. For example, SELECTION, SELECTION_HOVER, CREATION, and
CREATION_HOVER show feedback requests. This allows the color change to
happen in a certain context.
"Mouna" <mouna.feki@siemens.com> wrote in message
news:53f5d3afde6c18cbd7b29c2065974759$1@www.eclipse.org...
> hi, My figure is a rectangle(has as BackgroundColor green)
> how can i change dynamically the backgroundColor of my figure, when the
> cursor is moved over it? (the Figure will be red "only !!!" when the
> cursor over).
>
> Thanks Mouna
>
|
|
|
|
Re: change BackgroundColor dynamically [message #226274 is a reply to message #226259] |
Wed, 08 November 2006 19:52 |
Eclipse User |
|
|
|
Originally posted by: mouna.feki.siemens.com
Hi Anthony,
the default color of my figure is red.
i have added a MouseMotionListner to my Figure. but as result was the
color changed (green )only one time : the first time, where the cursor
moved over the Figure.
when the cursor is not on Figure is the color always green .
Bút i want in this case that the figure set again the default color
(red).
have an Example for this ?
Thanks
Mouna
|
|
|
|
Powered by
FUDForum. Page generated in 0.03614 seconds