Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Fixed element size from the beginning
Fixed element size from the beginning [message #145980] Thu, 09 August 2007 09:26 Go to next message
Eclipse UserFriend
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 #146009 is a reply to message #145980] Thu, 09 August 2007 11:14 Go to previous messageGo to next message
Eclipse UserFriend
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 #146053 is a reply to message #146009] Fri, 10 August 2007 04:29 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
>
Previous Topic:Editor still "dirty" after a full undo
Next Topic:GMF2.0 disappeared visual elements.
Goto Forum:
  


Current Time: Tue Apr 29 03:14:31 EDT 2025

Powered by FUDForum. Page generated in 0.05860 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top