Skip to main content


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 12:57 Go to next message
Matthias Nick is currently offline Matthias NickFriend
Messages: 197
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 13:10 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
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 13:21 Go to previous messageGo to next message
Matthias Nick is currently offline Matthias NickFriend
Messages: 197
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 08:02 Go to previous messageGo to next message
Matthias Nick is currently offline Matthias NickFriend
Messages: 197
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 08: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 10:59 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
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:Creating a custom composite with rap
Next Topic:CTabitem vs TabItem theming
Goto Forum:
  


Current Time: Fri Apr 19 18:20:03 GMT 2024

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

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

Back to the top