Skip to main content



      Home
Home » Eclipse Projects » GEF » Ensuring a child fits in the parent figure
Ensuring a child fits in the parent figure [message #115184] Mon, 02 February 2004 09:59 Go to next message
Eclipse UserFriend
Originally posted by: sellai.yahoo.com

Hi,
In the logic example, if the circuit figure contains a child figure
bigger than itself, the scollbars will appear. However, i do not wish for
such a behaviour. I need the behaviour where when the parent to detect
that the child is bigger than itself (or the child is placed in a location
in such a way that it will cause the scollbars to appear), it will expand
itself so that the scrollbars will never need to appear. Can i dictate
such a behaviour?

Regards,
June
Re: Ensuring a child fits in the parent figure [message #115213 is a reply to message #115184] Mon, 02 February 2004 11:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Certainly, you could modify the size of the parent in the command that adds
a child to it, for instance.

"June" <sellai@yahoo.com> wrote in message news:bvlolf$u4b$1@eclipse.org...
> Hi,
> In the logic example, if the circuit figure contains a child figure
> bigger than itself, the scollbars will appear. However, i do not wish for
> such a behaviour. I need the behaviour where when the parent to detect
> that the child is bigger than itself (or the child is placed in a location
> in such a way that it will cause the scollbars to appear), it will expand
> itself so that the scrollbars will never need to appear. Can i dictate
> such a behaviour?
>
> Regards,
> June
>
Re: Ensuring a child fits in the parent figure [message #115277 is a reply to message #115213] Tue, 03 February 2004 04:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sellai.yahoo.com

Hi,
But how about the parent resizing automatically as the child resize or
change location?

Regards,
June

Whitney Sorenson wrote:

> Certainly, you could modify the size of the parent in the command that adds
> a child to it, for instance.

> "June" <sellai@yahoo.com> wrote in message news:bvlolf$u4b$1@eclipse.org...
> > Hi,
> > In the logic example, if the circuit figure contains a child figure
> > bigger than itself, the scollbars will appear. However, i do not wish for
> > such a behaviour. I need the behaviour where when the parent to detect
> > that the child is bigger than itself (or the child is placed in a location
> > in such a way that it will cause the scollbars to appear), it will expand
> > itself so that the scrollbars will never need to appear. Can i dictate
> > such a behaviour?
> >
> > Regards,
> > June
> >
Re: Ensuring a child fits in the parent figure [message #115290 is a reply to message #115184] Tue, 03 February 2004 05:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nospam.gmx.net

Hi June,

if you add the child to the container,
the container editpart should receive a PropertyChangeEvent
which calls refreshChildren().
write your code needed for the resizing of the editpart before this line.

Hope it works!

Regards, Ingo


"June" <sellai@yahoo.com> wrote in message news:bvlolf$u4b$1@eclipse.org...
> Hi,
> In the logic example, if the circuit figure contains a child figure
> bigger than itself, the scollbars will appear. However, i do not wish for
> such a behaviour. I need the behaviour where when the parent to detect
> that the child is bigger than itself (or the child is placed in a location
> in such a way that it will cause the scollbars to appear), it will expand
> itself so that the scrollbars will never need to appear. Can i dictate
> such a behaviour?
>
> Regards,
> June
>
Re: Ensuring a child fits in the parent figure [message #115422 is a reply to message #115184] Tue, 03 February 2004 12:59 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

If you set the parent's constraint in it's parent (the diagram) such that it
is auto-sized, this will happen. In the logic example, use the properties
view to set the width/height of the circuit to -1, and you will see exactly
this.

"June" <sellai@yahoo.com> wrote in message news:bvlolf$u4b$1@eclipse.org...
> Hi,
> In the logic example, if the circuit figure contains a child figure
> bigger than itself, the scollbars will appear. However, i do not wish for
> such a behaviour. I need the behaviour where when the parent to detect
> that the child is bigger than itself (or the child is placed in a location
> in such a way that it will cause the scollbars to appear), it will expand
> itself so that the scrollbars will never need to appear. Can i dictate
> such a behaviour?
>
> Regards,
> June
>
Previous Topic:Connection Problems
Next Topic:editpart.performrequest
Goto Forum:
  


Current Time: Wed Apr 16 01:40:30 EDT 2025

Powered by FUDForum. Page generated in 0.04502 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top