How to have multi line labels [message #68813] |
Wed, 25 October 2006 05:23 |
Eclipse User |
|
|
|
Originally posted by: juan.bernabo.igphone.com
Hi,
I was unable to locate the old articles that talk about this, they are
unreachable, so I'm posting this again.
Thanks in advance
Juan.
|
|
|
|
Re: How to have multi line labels [message #68974 is a reply to message #68870] |
Wed, 25 October 2006 10:31 |
Eclipse User |
|
|
|
Originally posted by: tobk.gmx.de
Juan wrote:
> Just to show were I stopped... the link on that message is broken now:
>
> Hi Andy,
>
> please read here:
>
http://www.eclipse.org/newsportal/article.php?id=619&gro up=eclipse.modeling.gmf#619
>
> Martin
>
>
> "Juan" <juan.bernabo@igphone.com> wrote in message
> news:ehmsd0$ud9$1@utils.eclipse.org...
>> Hi,
>>
>> I was unable to locate the old articles that talk about this, they are
>> unreachable, so I'm posting this again.
>>
>> Thanks in advance
>> Juan.
>>
I found two possibilities:
1.: Just setting the Label to textwrap (e.g. "fig_0.setTextWrap(true)") in
the code. Do not forget to remove the @generated tag. But there seem to be
some problems with direct editing (you have to hover the mouse over the
label while editing, which can be very annoying)
2.: Use stack layout. Then the label is placed in the center (vertically,
too) and text wrap is enabled, but don't use this, is the same figure is
used as a compartment, too. Otherwise all the child figures and labels will
be stacked.
Personally, I think the best way (for figures with compartments) is to put
the label in an invisible sub-figure with layout set to stacklayout.
tobias
|
|
|
Powered by
FUDForum. Page generated in 0.02985 seconds