Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Change the Container Size as the child size changed?
Change the Container Size as the child size changed? [message #46024] Wed, 27 November 2002 17:11 Go to next message
Eclipse UserFriend
Originally posted by: radienssmgs2.hotmail.com

Hi,

I put a label within a container using Flowlayout.

As I editing the label by putting more text in it, the location of the label
shift. Is it possible to prevent that?
Attached is the screen shot 1.jpg is the initial position, 2.jpg is the
shift position as I put more text.

Is it possible for me to change the container's size as I enter more text?
The DirectEditPolicy can get the host figure( in this case the label), but
can the directory edit policy get the container figure of the host figure?

Thank you.



  • Attachment: 1.jpg
    (Size: 24.00KB, Downloaded 86 times)
  • Attachment: 2.jpg
    (Size: 24.55KB, Downloaded 95 times)
Re: Change the Container Size as the child size changed? [message #46084 is a reply to message #46024] Thu, 28 November 2002 00:33 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

It depends on the context of the figure and which layouts you are using.
In you example, create another Flow container that is really large, and put
the flow container from your example inside it.
Or, set your flow containers width and height to -1 using the property
sheet.

"Jack R." <radienssmgs2@hotmail.com> wrote in message
news:as2u9l$v8o$1@rogue.oti.com...
> Hi,
>
> I put a label within a container using Flowlayout.
>
> As I editing the label by putting more text in it, the location of the
label
> shift. Is it possible to prevent that?
> Attached is the screen shot 1.jpg is the initial position, 2.jpg is the
> shift position as I put more text.
>
> Is it possible for me to change the container's size as I enter more text?
> The DirectEditPolicy can get the host figure( in this case the label), but
> can the directory edit policy get the container figure of the host figure?
>
> Thank you.
>
>
>
Previous Topic:Container Highlight edit policy
Next Topic:scrolling graphical viewer
Goto Forum:
  


Current Time: Wed Jan 15 15:06:47 GMT 2025

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

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

Back to the top