Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 442592

Summary: [Button] Support markup in button text
Product: [RT] RAP Reporter: Ingo Meyer <ingo.meyer>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: 3.0 M2   
Hardware: PC   
OS: Windows NT   
Whiteboard:

Description Ingo Meyer CLA 2014-08-26 10:41:21 EDT
I need to use styled text with the right-side label of a radio or checkbox button with RWT.MARKUP_ENABLED (via button-setText("Hello<br/>World").
Is this possible?
Comment 1 Ivan Furnadjiev CLA 2014-09-01 03:03:26 EDT
Ingo, the new-line character '\n' is supported on check/radio buttons text (with style SWT.WRAP) for new line splitting. Is this the only need for markup support? See also bug 425966.
Comment 2 Ingo Meyer CLA 2014-09-01 03:12:08 EDT
Ivan, no my example was then a little bit misleading... sorry.
What I want to achieve is a wizard page with radio buttons with a bold text, an empty line and then a multiline description in small italic letters, like:
"<strong>Option 1</strong><br/><br/><small><i>With this option you can bla bla bla<br/>bla bla bla...</i></small>"
Comment 3 Ivan Furnadjiev CLA 2014-09-03 05:37:55 EDT
Implemented in master with change https://git.eclipse.org/r/32701