| Creating composite boxes [message #138112] |
Tue, 15 June 2004 01:44  |
Eclipse User |
|
|
|
Originally posted by: harshs.bsil.com
Hi,
i am trying to draw a composite component within which i can nest other
components. i mean to say that i can drag and drop a component in other
component but as soon as i move the parent component the nested component
do not move accordingly. it stays there....
Please help me in this regard
thanx in advance
Regards,
Harsh Singal
|
|
|
|
| Re: Creating composite boxes [message #138654 is a reply to message #138509] |
Thu, 17 June 2004 10:22  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
If you used a "proportional" XYLayout instead of an XYLayout, then you would
get scaling children. It's often easier to model what you are doing in
Draw2d instead of making the commands more complex.
"Steven Melzer" <smelzer@paymentech.com> wrote in message
news:caq1ps$vic$1@eclipse.org...
> the logic example does this. the LogicContainer is the editpart and the
> Circuit figure is an example of a container figure.
>
> i am using containers and they work well.
>
> the only issue with containers i have found is that the children do not
> scale with the parent. so, when you move the parent, the children go with
> it. but, if you resize the figure, the children remain their original
> size. i have spent some time adding this resize functionality, but have
> not completed it yet.
>
> steve
>
> Harsh Singal wrote:
>
> > Hi,
> > i am trying to draw a composite component within which i can nest other
> > components. i mean to say that i can drag and drop a component in other
> > component but as soon as i move the parent component the nested
component
> > do not move accordingly. it stays there....
> > Please help me in this regard
>
> > thanx in advance
> > Regards,
> > Harsh Singal
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03527 seconds