Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » WrappingLabel question
WrappingLabel question [message #235915] Fri, 10 July 2009 09:51 Go to next message
Eclipse UserFriend
Originally posted by: schoepke.thetaris.com

Hi all

I have some editparts that just contain one label to display the name of a
model element. This label is generated as WrappingLabel and shows up just
fine.
But, unfortunately, the label seems to fill the whole figure of the
containing editpart's figure, so when I resize the figure, the label
inside resizes with it, so it always takes up the whole figure space.

How can I tell the label to only take up as much space as it really needs
for its icon and text? I want the rest of the containing figure to be
"free space" so I could see its background and click or double-click on it
(e.g. for opening sub-diagrams).

Thanks for any hints
Norbert Schöpke
Re: WrappingLabel question [message #235960 is a reply to message #235915] Fri, 10 July 2009 11:45 Go to previous message
Eclipse UserFriend
Originally posted by: aurelien.pupier.esial.net

Norbert Schöpke a écrit :
> Hi all
>
> I have some editparts that just contain one label to display the name of
> a model element. This label is generated as WrappingLabel and shows up
> just fine.
> But, unfortunately, the label seems to fill the whole figure of the
> containing editpart's figure, so when I resize the figure, the label
> inside resizes with it, so it always takes up the whole figure space.
>
> How can I tell the label to only take up as much space as it really
> needs for its icon and text? I want the rest of the containing figure to
> be "free space" so I could see its background and click or double-click
> on it (e.g. for opening sub-diagrams).
>
> Thanks for any hints
> Norbert Schöpke
>

Hi Norbert,

Perhaps you can set a maximum size dimension on your label in the gmfgraph definition.

Aurelien Pupier
Previous Topic:Compartment question
Next Topic:Dynamic message while defining Audit Rules
Goto Forum:
  


Current Time: Fri Apr 19 14:21:05 GMT 2024

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

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

Back to the top