Container Question [message #150768] |
Tue, 14 September 2004 05:15 |
Eclipse User |
|
|
|
Originally posted by: psirr.earthlink.net
I have a figure used as a container (as the circuit is in the logic
example). The container has the requirement that it must resize when any of
its children are moved or resized. So at all times it shows completely it's
children with no clipping. Any one have any examples of this? Seems like a
layout manager could help me here, but I'm not sure how.
Thanks!
|
|
|
|
Re: Container Question [message #150833 is a reply to message #150768] |
Tue, 14 September 2004 18:40 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Try settings a circuit's width/height to -1, and then moving its children
around.
"Patrick" <psirr@earthlink.net> wrote in message
news:ci5uid$o2b$1@eclipse.org...
> I have a figure used as a container (as the circuit is in the logic
> example). The container has the requirement that it must resize when any
of
> its children are moved or resized. So at all times it shows completely
it's
> children with no clipping. Any one have any examples of this? Seems like
a
> layout manager could help me here, but I'm not sure how.
>
> Thanks!
>
>
|
|
|
Re: Container Question [message #151164 is a reply to message #150833] |
Thu, 16 September 2004 01:52 |
Eclipse User |
|
|
|
Originally posted by: psirr.earthlink.net
I have a freeform layout on the container. It doesn't appear that setting
the width/height is doing anything. As for overriding
calculatePreferredSize() it isn't getting called. Any ideas? Does the
freeform layout shortcircuit any of these calls?
"Randy Hudson" <none@us.ibm.com> wrote in message
news:ci7do9$i2o$1@eclipse.org...
> Try settings a circuit's width/height to -1, and then moving its children
> around.
>
> "Patrick" <psirr@earthlink.net> wrote in message
> news:ci5uid$o2b$1@eclipse.org...
> > I have a figure used as a container (as the circuit is in the logic
> > example). The container has the requirement that it must resize when
any
> of
> > its children are moved or resized. So at all times it shows completely
> it's
> > children with no clipping. Any one have any examples of this? Seems
like
> a
> > layout manager could help me here, but I'm not sure how.
> >
> > Thanks!
> >
> >
>
>
|
|
|
Re: Container Question [message #153235 is a reply to message #151164] |
Thu, 07 October 2004 08:39 |
Eclipse User |
|
|
|
Originally posted by: imran.shafiq.bmw-carit.de
I just finished doing somethng like that.
Had to write an ordered layout manager.
getprefferedsize is not called u r right!
but layout() is called whenever something is changing
so i call the getprefferedsize from there
calculate my size in the getprefferedsize
and then see if the new set size is
according to my preffered size
....
"Patrick" <psirr@earthlink.net> schrieb im Newsbeitrag
news:ciare5$vmf$1@eclipse.org...
>I have a freeform layout on the container. It doesn't appear that setting
> the width/height is doing anything. As for overriding
> calculatePreferredSize() it isn't getting called. Any ideas? Does the
> freeform layout shortcircuit any of these calls?
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:ci7do9$i2o$1@eclipse.org...
>> Try settings a circuit's width/height to -1, and then moving its children
>> around.
>>
>> "Patrick" <psirr@earthlink.net> wrote in message
>> news:ci5uid$o2b$1@eclipse.org...
>> > I have a figure used as a container (as the circuit is in the logic
>> > example). The container has the requirement that it must resize when
> any
>> of
>> > its children are moved or resized. So at all times it shows completely
>> it's
>> > children with no clipping. Any one have any examples of this? Seems
> like
>> a
>> > layout manager could help me here, but I'm not sure how.
>> >
>> > Thanks!
>> >
>> >
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03597 seconds