Skip to main content



      Home
Home » Eclipse Projects » GEF » Limit the Size of a Figure
Limit the Size of a Figure [message #38604] Sat, 02 November 2002 00:42 Go to next message
Eclipse UserFriend
From previous positing in this newsgroup, I know how to add a
NonResizableEditPart to a figure so that user can not resize a figure after
it is drawn. However, from the creation tool, user can still change the
initial size of a figure by doing this (can repeat that in the Logic Editor
Example):
* select the component to be drawn from the creation tool
* move the mouse to the diagram editor, click the mouse to where you want
the component to be drawn, but DO NOT release the mouse.
* drag the mouse and you can see the component size changes as you drag the
mouse
* release the mouse and the figure will be bigger.

If you do this for Circuit in the Logic Editor Example, the size of the
Circuit will be bigger then the default size.

How can I *PREVENT* the user from doing this. In other words, user can not
change the size during creation by doing the steps I mentioned above.

Thank you.
Re: Limit the Size of a Figure [message #38637 is a reply to message #38604] Sat, 02 November 2002 08:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.com

Creation is now done using drag and drop. You press the mouse button on the
palette, and release it on the canvas.

The CreationTool still exists, but most application should not use it.

"yinglcs" <yinglcs@netscape.com> wrote in message
news:apvmp8$c69$1@rogue.oti.com...
> From previous positing in this newsgroup, I know how to add a
> NonResizableEditPart to a figure so that user can not resize a figure
after
> it is drawn. However, from the creation tool, user can still change the
> initial size of a figure by doing this (can repeat that in the Logic
Editor
> Example):
> * select the component to be drawn from the creation tool
> * move the mouse to the diagram editor, click the mouse to where you want
> the component to be drawn, but DO NOT release the mouse.
> * drag the mouse and you can see the component size changes as you drag
the
> mouse
> * release the mouse and the figure will be bigger.
>
> If you do this for Circuit in the Logic Editor Example, the size of the
> Circuit will be bigger then the default size.
>
> How can I *PREVENT* the user from doing this. In other words, user can not
> change the size during creation by doing the steps I mentioned above.
>
> Thank you.
>
>
Re: Limit the Size of a Figure [message #38698 is a reply to message #38637] Sat, 02 November 2002 14:57 Go to previous message
Eclipse UserFriend
Thanks Randy. But in the logic Editor Example in the latest build, it uses
CreationTool. Do you mean I should not do that now?
How can I convert the CreationTool to the Drag-and-Drop that you mention?

And how can I prevent user from changing the size of the figure during the
creation of the figure (using drag-and-drop)?

Thank you.


"Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
news:aq0gv4$j7q$1@rogue.oti.com...
> Creation is now done using drag and drop. You press the mouse button on
the
> palette, and release it on the canvas.
>
> The CreationTool still exists, but most application should not use it.
>
> "yinglcs" <yinglcs@netscape.com> wrote in message
> news:apvmp8$c69$1@rogue.oti.com...
> > From previous positing in this newsgroup, I know how to add a
> > NonResizableEditPart to a figure so that user can not resize a figure
> after
> > it is drawn. However, from the creation tool, user can still change the
> > initial size of a figure by doing this (can repeat that in the Logic
> Editor
> > Example):
> > * select the component to be drawn from the creation tool
> > * move the mouse to the diagram editor, click the mouse to where you
want
> > the component to be drawn, but DO NOT release the mouse.
> > * drag the mouse and you can see the component size changes as you drag
> the
> > mouse
> > * release the mouse and the figure will be bigger.
> >
> > If you do this for Circuit in the Logic Editor Example, the size of the
> > Circuit will be bigger then the default size.
> >
> > How can I *PREVENT* the user from doing this. In other words, user can
not
> > change the size during creation by doing the steps I mentioned above.
> >
> > Thank you.
> >
> >
>
>
Previous Topic:non-rectangular shapes?
Next Topic:Bring Figure to Front
Goto Forum:
  


Current Time: Thu Jul 24 12:35:00 EDT 2025

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

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

Back to the top