Fixed element size from the beginning [message #145980] |
Thu, 09 August 2007 09:26  |
Eclipse User |
|
|
|
Hello,
does anyone know, how I can make sure that an item will always have a
fixed size? I set the non-resize constraints, and it works, but if I make
a new element I can still give any size the element. I think there was a
post about this, but I cannot find it. So I would like to make sure, that
an object like a rectangle will always have the shape of a square.
Thank you for your interest.
|
|
|
|
Re: Fixed element size from the beginning [message #146053 is a reply to message #146009] |
Fri, 10 August 2007 04:29   |
Eclipse User |
|
|
|
Oh yes of course, but this seems to be only recommendations. The min-size
for example is overwritten if the labels need more place. If somebody
could give some links to other posts, I can try to solve my problem by
myself.
Thank you for your answer.
SKuhn wrote:
> did you already try to set minimum size, max. size and preferred size?
> -stefan
> Malte schrieb:
>> Hello,
>>
>> does anyone know, how I can make sure that an item will always have a
>> fixed size? I set the non-resize constraints, and it works, but if I
>> make a new element I can still give any size the element. I think there
>> was a post about this, but I cannot find it. So I would like to make
>> sure, that an object like a rectangle will always have the shape of a
>> square.
>> Thank you for your interest.
|
|
|
Re: Fixed element size from the beginning [message #146116 is a reply to message #146053] |
Fri, 10 August 2007 05:40  |
Eclipse User |
|
|
|
personally I haven't experienced that min-size is overritten. But if you
say so you could still force it if you extend the figure-type of your
base figure, change your base figure to a custom figure (in gmfGraph)
and override min,pref and maxsize in your extending figure to the
desired value. Already tried this?
-stefan
Malte schrieb:
> Oh yes of course, but this seems to be only recommendations. The
> min-size for example is overwritten if the labels need more place. If
> somebody could give some links to other posts, I can try to solve my
> problem by myself.
> Thank you for your answer.
>
> SKuhn wrote:
>
>> did you already try to set minimum size, max. size and preferred size?
>> -stefan
>
>> Malte schrieb:
>>> Hello,
>>>
>>> does anyone know, how I can make sure that an item will always have a
>>> fixed size? I set the non-resize constraints, and it works, but if I
>>> make a new element I can still give any size the element. I think
>>> there was a post about this, but I cannot find it. So I would like to
>>> make sure, that an object like a rectangle will always have the shape
>>> of a square.
>>> Thank you for your interest.
>
|
|
|
Powered by
FUDForum. Page generated in 0.05860 seconds