feedbackFigure snap to parent during drag [message #189725] |
Thu, 28 July 2005 17:54 |
Eclipse User |
|
|
|
Originally posted by: gef.oppacher.ca
Hi,
I'm trying to force my feedbackFigure to stay attached to a parent figure.
I have a small box which I want to drag around the outside of it's parent
(a larger rectangle). I want the feedBackFigure to stay on the parent
rectangle even if the mouse is pulled away from the figure. Any thoughts
on how to do this? Right now I'm setting the bounds of the child inside
createFigure method of my ResizableEditPolicy subclass.
Thanks,
Yandu
|
|
|
Re: feedbackFigure snap to parent during drag [message #189783 is a reply to message #189725] |
Fri, 29 July 2005 15:01 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
Subclass SnapToHelper and adjust the request so that the child is snapping
at all times. This is how snapping is done for guides, geometry and grid.
I didn't understand the part about the child being outside the bounds of the
parent, though. I am guessing you mean a notional parent, and not a parent
figure.
"Yandu" <gef@oppacher.ca> wrote in message
news:38bd66137501dce8395782cc654f90db$1@www.eclipse.org...
> Hi,
>
> I'm trying to force my feedbackFigure to stay attached to a parent figure.
> I have a small box which I want to drag around the outside of it's parent
> (a larger rectangle). I want the feedBackFigure to stay on the parent
> rectangle even if the mouse is pulled away from the figure. Any thoughts
> on how to do this? Right now I'm setting the bounds of the child inside
> createFigure method of my ResizableEditPolicy subclass.
>
> Thanks,
> Yandu
>
|
|
|
Powered by
FUDForum. Page generated in 0.02820 seconds