Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Multiline text in RadioButton and CheckBox
Multiline text in RadioButton and CheckBox [message #1232215] Thu, 16 January 2014 07:57 Go to next message
Matthias Nick is currently offline Matthias Nick
Messages: 163
Registered: August 2013
Senior Member
Hi,
I do have the requirement that a RadioButton and CheckBox need to support multiline labels.

Can you give me a hint how I could achieve this in RAP?

Thanks,
Matthias
Re: Multiline text in RadioButton and CheckBox [message #1232222 is a reply to message #1232215] Thu, 16 January 2014 08:10 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1794
Registered: July 2009
Senior Member
Hi Matthias,
create your radio/check buttons with SWT.WRAP style flag and split the
text with new lines ( \n ).
HTH,
Ivan

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Multiline text in RadioButton and CheckBox [message #1232225 is a reply to message #1232222] Thu, 16 January 2014 08:21 Go to previous messageGo to next message
Matthias Nick is currently offline Matthias Nick
Messages: 163
Registered: August 2013
Senior Member
Hi Ivan,
great, thanks!

Matthias
Re: Multiline text in RadioButton and CheckBox [message #1245757 is a reply to message #1232215] Fri, 14 February 2014 03:02 Go to previous messageGo to next message
Matthias Nick is currently offline Matthias Nick
Messages: 163
Registered: August 2013
Senior Member
I know I can use "\n" to break the lines, however is it possible to enable automatic text wrapping in the label?

[Updated on: Fri, 14 February 2014 03:02]

Report message to a moderator

Re: Multiline text in RadioButton and CheckBox [message #1250561 is a reply to message #1245757] Wed, 19 February 2014 05:59 Go to previous message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

> I know I can use "\n" to break the lines, however is it possible to
> enable text wrapping in the label?

Did you try it? Label supports "\n" out of the box.

--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Bug in apache-commons-fileupload
Next Topic:DirectoryDialog RAP
Goto Forum:
  


Current Time: Sat Aug 30 14:27:03 EDT 2014

Powered by FUDForum. Page generated in 0.01879 seconds