L&F : Focus Rectangle [message #203801] |
Mon, 28 November 2005 12:01 |
Eclipse User |
|
|
|
Originally posted by: awm_abu.yahoo.com
Hello all,
I have had a request from the Look and Feel people here to change the look
of the focus rectangle that appears when you select a Figure.
At the moment it appears as 8 small black rectangles around the edge of the
rectangle area connected with lines.
When you try to move the Figure the rectangle changes to a series of dots.
The L&F people would prefer the focus rectangle to look like the latter one
mentioned - a series of dots.
How do I go about changing this ?
Regards.
|
|
|
Re: Focus Rectangle [message #203826 is a reply to message #203801] |
Mon, 28 November 2005 15:08 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
That's the selection rectangle, not the focus rectangle. To see the focus
rectangle, use Ctrl + Arrow keys.
"Frank Abercorn" <awm_abu@yahoo.com> wrote in message
news:dmerj6$fkd$1@news.eclipse.org...
> Hello all,
>
> I have had a request from the Look and Feel people here to change the look
> of the focus rectangle that appears when you select a Figure.
>
> At the moment it appears as 8 small black rectangles around the edge of
the
> rectangle area connected with lines.
>
> When you try to move the Figure the rectangle changes to a series of dots.
>
> The L&F people would prefer the focus rectangle to look like the latter
one
> mentioned - a series of dots.
>
> How do I go about changing this ?
>
> Regards.
>
>
|
|
|
Re: Focus Rectangle [message #203834 is a reply to message #203826] |
Mon, 28 November 2005 15:16 |
Eclipse User |
|
|
|
Originally posted by: awm_abu.yahoo.com
Thanks Pratik,
You are correct I was referring to the Selection rectangle.
I have checked with them and they also want this changed.
So is there a way to change the rectangle to a series of dots similar to the
focus rectangle ?
Thanks again.
"Pratik Shah" <none@unknown.com> wrote in message
news:dmf6hq$44r$1@news.eclipse.org...
> That's the selection rectangle, not the focus rectangle. To see the focus
> rectangle, use Ctrl + Arrow keys.
>
> "Frank Abercorn" <awm_abu@yahoo.com> wrote in message
> news:dmerj6$fkd$1@news.eclipse.org...
>> Hello all,
>>
>> I have had a request from the Look and Feel people here to change the
>> look
>> of the focus rectangle that appears when you select a Figure.
>>
>> At the moment it appears as 8 small black rectangles around the edge of
> the
>> rectangle area connected with lines.
>>
>> When you try to move the Figure the rectangle changes to a series of
>> dots.
>>
>> The L&F people would prefer the focus rectangle to look like the latter
> one
>> mentioned - a series of dots.
>>
>> How do I go about changing this ?
>>
>> Regards.
>>
>>
>
>
|
|
|
Re: Focus Rectangle [message #203948 is a reply to message #203834] |
Tue, 29 November 2005 10:40 |
|
Hi!
Frank Abercorn wrote:
> You are correct I was referring to the Selection rectangle.
> I have checked with them and they also want this changed.
> So is there a way to change the rectangle to a series of dots similar to the
> focus rectangle ?
That's possible. You need to overwrite the layout EditPolicy of the
parent container to return a custom EditPolicy for the children that
should have their selection changed.
For the container LayoutEditPolicy see:
org.eclipse.gef.editpolicies.LayoutEditPolicy#createChildEdi tPolicy(EditPart)
For the custom child EditPolicy returned there see:
org.eclipse.gef.editpolicies.SelectionHandlesEditPolicy#crea teSelectionHandles()
I'm not sure if there are some examples in the Logic example.
Cu, Gunnar
--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
|
|
|
Powered by
FUDForum. Page generated in 0.03148 seconds