Skip to main content


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: 162
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: 396
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:how to get the elements of the fiteredTree after it is filtered?
Next Topic:How to disable scrollbars in RAP 2.0M2
Goto Forum:
  


Current Time: Fri Mar 29 12:10:24 GMT 2024

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

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

Back to the top