Can I close compartment and maintain overall size of figure ? [message #78759] |
Sun, 19 November 2006 14:19  |
Eclipse User |
|
|
|
Originally posted by: awm_abu.yahoo.com
Hey,
I am wondering whether I can use compartments in my figure.
I need the figure to stay the same size at all times.
So I was wondering if it was possible to have a compartment open/close and
change the rest of the figure
in a relative way so as to keep overall size the same ?
Thanks,
Alan.
|
|
|
|
Re: Can I close compartment and maintain overall size of figure ? [message #79544 is a reply to message #78955] |
Tue, 21 November 2006 13:56  |
Eclipse User |
|
|
|
Originally posted by: awm_abu.yahoo.com
Thanks very much I will do that
"Cherie Revells" <crevells@ca.ibm.com> wrote in message
news:ejt618$e28$1@utils.eclipse.org...
> Alan,
>
> Yes, this should be possible. The circuit figure in the Logic Diagram
> Example does not change size when the circuit compartment figure is
> collapsed. I think you just need to set the preferred size in your
> top-level figure, but if that doesn't work I suggest you put a breakpoint
> in ConstrainedToolbarLayout.layout(IFigure) and then collapse the
> compartment to see what happens. This layout manager will allocate space
> to the children based on their preferred size.
>
> Regards,
> Cherie
>
> Alan wrote:
>> Hey,
>>
>> I am wondering whether I can use compartments in my figure.
>> I need the figure to stay the same size at all times.
>> So I was wondering if it was possible to have a compartment open/close
>> and change the rest of the figure
>> in a relative way so as to keep overall size the same ?
>>
>> Thanks,
>>
>> Alan.
|
|
|
Powered by
FUDForum. Page generated in 0.03073 seconds