Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to prevent auto resizing of shape/compartment
How to prevent auto resizing of shape/compartment [message #183955] Wed, 23 April 2008 08:07 Go to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-SchwartzFriend
Messages: 448
Registered: July 2009
Senior Member
Hello everybody.

I have a shape in the form of a plain rectangle, which in turn contains
a compartment. This shape is not supposed to change its size. I have
things wired such that the user is prevented from resizing it, as
required.

However, when I add a child to it and move/size it to partially exceed
the shape's allotted space, the shape (or is it the compartment?)
automatically grows in size to accomodate for the extra space
requirement, which is not what I want.

Ideally I would want for the shape to stay put and for the move or
resize operation on the child to be prevented if the child ends up out
of bounds of the parent.

Any pointer?

TIA,
B.

--
                                  Barbara Rosi-Schwartz
                   Etish Limited [http://www.etish.org]
Blog: http://www.brs4etish.blogspot.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ^...^
 /  o,o  \       The proud parents of Useme
 |) ::: (|       The Open Requirements Management Tool
====w=w====      [https://useme.dev.java.net]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: How to prevent auto resizing of shape/compartment [message #184035 is a reply to message #183955] Wed, 23 April 2008 12:04 Go to previous messageGo to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-SchwartzFriend
Messages: 448
Registered: July 2009
Senior Member
On 2008-04-23 09:07:11 +0100, Barbara Rosi-Schwartz
<Barbara.Rosi-Schwartz@Etish.org> said:

> Hello everybody.
>
> I have a shape in the form of a plain rectangle, which in turn contains
> a compartment. This shape is not supposed to change its size. I have
> things wired such that the user is prevented from resizing it, as
> required.
>
> However, when I add a child to it and move/size it to partially exceed
> the shape's allotted space, the shape (or is it the compartment?)
> automatically grows in size to accomodate for the extra space
> requirement, which is not what I want.
>
> Ideally I would want for the shape to stay put and for the move or
> resize operation on the child to be prevented if the child ends up out
> of bounds of the parent.
>
> Any pointer?
>
> TIA,
> B.


I have just come across a previous posting which states:

"when you create a shape using the one click the shape will have no
size assigned to it and it will be in an Auto Size mode, that is why
when you change the name the shape will grow or will shrink.

but if you specify the shape size by dragging the mouse while creating
the shape then the size is set on the shape and it will not resize
automatically"

So, does this mean that the auto sizing I experience is due to the fact
that I I preassign the size to my shape and do not allow the user to
change it? And if the answer is yes, how to switch this default
behaviour off?

Thanks again,
B.

--
                                  Barbara Rosi-Schwartz
                   Etish Limited [http://www.etish.org]
Blog: http://www.brs4etish.blogspot.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ^...^
 /  o,o  \       The proud parents of Useme
 |) ::: (|       The Open Requirements Management Tool
====w=w====      [https://useme.dev.java.net]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: How to prevent auto resizing of shape/compartment [message #184722 is a reply to message #184035] Tue, 29 April 2008 15:06 Go to previous message
Malte Koelling is currently offline Malte KoellingFriend
Messages: 14
Registered: July 2009
Junior Member
Does nobody know the answer? I have the same problem and would like to
know the solution.

The documentation of the whole GMF project is non-existent. This lowers
the useability a lot. Despite the tutorial and collected Q&A I did not
find much. The documentation in the normal help is outdated and nobody
seems to care.

The community is the last hope for many users. To answer the same
questions over and over again might be boring, but I used the search
function and I did not find anything.

Regards

Malte
Previous Topic:missing again
Next Topic:Customized tabbed property view section and editPart issue
Goto Forum:
  


Current Time: Fri Sep 20 03:43:09 GMT 2024

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

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

Back to the top