Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Label SWT.WRAP will not work with RWT.MARKUP_ENABLED(Long text without wrapping is unusable!)
Label SWT.WRAP will not work with RWT.MARKUP_ENABLED [message #977528] Fri, 09 November 2012 10:55 Go to next message
Ingo Meyer is currently offline Ingo MeyerFriend
Messages: 127
Registered: July 2009
Senior Member
Hi,

I have problems to get a styled text wrapping.
Is my title statement true?
How can long text we wrapped in RAP?

I thought this should be easy, but all my tries failed.
I tried to add CSS "word-wrap: break-word;" to the Label define,
tried with horizontal and vertical filling and so on.

Is there anything I can do in the markup?

Thanks for your help,
~Ingo
Re: Label SWT.WRAP will not work with RWT.MARKUP_ENABLED [message #984043 is a reply to message #977528] Wed, 14 November 2012 10:58 Go to previous message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 387
Registered: July 2009
Senior Member
Hi there!

Works fine for me. Example:

fixedSizeLabel = new Label( parent, SWT.WRAP );
fixedSizeLabel.setData( RWT.MARKUP_ENABLED, Boolean.TRUE );
fixedSizeLabel.setText( "<i>Fixed size Label with some very long
text and <b>more</b> text</i>" );
fixedSizeLabel.setLayoutData( new RowData( 100, 100 ) );

Could you post a code snippet?
Also, what RAP version are we talking about?

Greetings,
Tim
--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:rwt standalone rap 1.5 deployed in jboss occror error like Not installing optional component!
Next Topic:RAP/RWT JUnit testing
Goto Forum:
  


Current Time: Mon Dec 22 16:39:58 GMT 2014

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

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