Change the Container Size as the child size changed? [message #46024] |
Wed, 27 November 2002 17:11 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04262 seconds