Draw2d and SWT working together [message #181487] |
Mon, 16 May 2005 12:54  |
Eclipse User |
|
|
|
Originally posted by: andrew_NOSPAM_.eisenberg.as
Hi,
Is there a way to place an SWT widget onto a draw2d figure? In particular, I
would like to place an (editable) text field onto part of a draw2d drawing.
thanks,
--andrew
|
|
|
|
|
Re: Draw2d and SWT working together [message #181802 is a reply to message #181487] |
Thu, 19 May 2005 11:40  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Someone should contribute a ControlProxy figure implementation to draw2d.
(I think we'd be using proxy in the right sense in thise case, but correct
me if I'm wrong). the figure's getPreferredSize(), would delegate to the
computeSize method on the control. Calling setBounds on the figure would
additionally call setBounds() on the Control (after translating to absolute
cooreidnates). Disposing the control would remove the figure from it's
parent.
There are still some other bugs surrounding scrolling of the canvas and
children not moving. Those will be fixed soon I hope.
"Andrew Eisenberg" <andrew_NOSPAM_@eisenberg.as> wrote in message
news:d6ajr2$brv$1@news.eclipse.org...
> Hi,
>
> Is there a way to place an SWT widget onto a draw2d figure? In
> particular, I would like to place an (editable) text field onto part of a
> draw2d drawing.
>
>
> thanks,
> --andrew
|
|
|
Powered by
FUDForum. Page generated in 0.02371 seconds