Possible to change location of a child in a flowlayout? [message #164700] |
Thu, 20 January 2005 05:32  |
Eclipse User |
|
|
|
Originally posted by: marlu942.student.liu.se
Hi fellow GEFers,
I have a figure with a FlowLayout as layout manager.
I would now like to change the location for one of its children in order
to simulate that the child has a margin.
Is it feasible or do I have to use XYLayout in order to manipulate location?
Regards,
Marcus Ludvigson
|
|
|
|
Re: Possible to change location of a child in a flowlayout? [message #164811 is a reply to message #164723] |
Thu, 20 January 2005 13:46   |
Eclipse User |
|
|
|
Originally posted by: marlu942.student.liu.se
Brian,
I'm building a GUI-editor with support for a Docking Layout-type that I
simulated using FlowLayout/ToolbarLayout. But then came margins as the
next development item. I just love incremental development :-).
I changed layout manager to DelegatingLayout so that each child can
handle each own layout. Easier to slip while coding, but necessary for
my needs.
Thanks for your reply,
Marcus Ludvigson
Brian Fernandes wrote:
> Marcus,
>
> I don't think you'd get too much control over individual children.
>
> If you change the order of your children, the location will change, but
> I'm guessing you need something more specific?
>
> I don't really know what you wish to achieve, I guess you can override
> the FlowLayout to do your own thing, or you can place the desired child
> in a proxy parent which has XYLayout and place that proxy in the your
> FlowLayout.
>
> Hope this helps,
> Brian.
>
> Marcus Ludvigson wrote:
>
>> Hi fellow GEFers,
>
>
>> I have a figure with a FlowLayout as layout manager.
>> I would now like to change the location for one of its children in
>> order to simulate that the child has a margin.
>
>
>> Is it feasible or do I have to use XYLayout in order to manipulate
>> location?
>
>
>> Regards,
>> Marcus Ludvigson
>
>
>
|
|
|
Re: Possible to change location of a child in a flowlayout? [message #165095 is a reply to message #164700] |
Fri, 21 January 2005 14:55  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
"Marcus Ludvigson" <marlu942@student.liu.se> wrote in message
news:cso1cp$of8$1@www.eclipse.org...
> Hi fellow GEFers,
>
> I have a figure with a FlowLayout as layout manager.
> I would now like to change the location for one of its children in order
> to simulate that the child has a margin.
What about using a MarginBorder? Another possibility is enhance FlowLayout
to handle some constraint object, and submit a patch to us :-)
> Is it feasible or do I have to use XYLayout in order to manipulate
> location?
>
> Regards,
> Marcus Ludvigson
|
|
|
Powered by
FUDForum. Page generated in 0.04946 seconds