[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Parent-child layout problem

Hi Cherie,

thanks for answering, I use currently exactly affixed parent side in my 
prototype - this is working more or less as expected.

My question is about the layout usage in GMF - the example is with 
BorderLayout, but the same issue is noticed with other layouts as well - 
GrigLayout as example. Somehow I am not able to use other layout than Flow 
and XY.

I posted the model files - probably I do something wrong? But what? Same 
models work fline with only changing the layout to Flow.

Any further help is greatly appreciated...


"Cherie Revells" <crevells@xxxxxxxxxx> wrote in message 
news:fd163r$mf0$1@xxxxxxxxxxxxxxxxxxxx
> Merlin,
>
> The behavior you are seeing use the affixed parent side is expected. There 
> is a locator used to determine where these border item figures should be 
> placed.  You can customize the locator used to place the figures where you 
> want.
>
> Regards,
> Cherie
>
>
> Merlin wrote:
>> Hi, I am new with GMF and I am trying to get use of the layouts... but 
>> somehow I am not able to do it right. What I want to achieve is the 
>> following - one figure which children (two types of children) are 
>> displayed left and right (according to the type) at the figure rand. I 
>> thought using BorderLayout and two compartments for the childes, but I 
>> can't get it right. The best I got was by using affixed parent side, bit 
>> this solution seems not stable enough - when I resize the figure or add 
>> more childes, it is not clear where the new child will appear - on top, 
>> bottom or even on the opposite side of the figure - when there are more 
>> childes.
>>
>> This is what I want to achieve:
>> _____________
>> |             |
>> |O           O|
>> |O            |
>> |             |
>> |_____________|
>>
>> Can someone please post an example how a parent can layout it's childes?
>> Some clues at least?
>>
>> Thanks a lot, I am really stuck for some time...
>>
>> Merlin
>>