Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Placing label text on left side of check box(Placing label text on left side of check box)
Placing label text on left side of check box [message #514972] Wed, 17 February 2010 11:39 Go to next message
Biju  is currently offline Biju Friend
Messages: 4
Registered: January 2010
Junior Member
Hi,

I searched this for a while but couldn't find any solution.
How can I place the label text before the check box?

Thanks,
Biju
Re: Placing label text on left side of check box [message #514977 is a reply to message #514972] Wed, 17 February 2010 07:02 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5462
Registered: July 2009
Senior Member
You'll have to use a Composite with a Label and Button-Widget.

Tom

Am 17.02.10 12:39, schrieb Biju:
> Hi,
>
> I searched this for a while but couldn't find any solution.
> How can I place the label text before the check box?
>
> Thanks,
> Biju
Re: Placing label text on left side of check box [message #514978 is a reply to message #514972] Wed, 17 February 2010 07:02 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 17.02.2010 12:39, Biju wrote:
> I searched this for a while but couldn't find any solution.
> How can I place the label text before the check box?

Additionally or' the value SWT.RIGHT_TO_LEFT to the
styles on construction.

HTH & Greetings from Bremen,

Daniel Krügler
Re: Placing label text on left side of check box [message #514979 is a reply to message #514977] Wed, 17 February 2010 07:02 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 17.02.2010 12:55, Tom Schindl wrote:
> You'll have to use a Composite with a Label and Button-Widget.

I agree, that this is the correct portable way.
I sometimes use the SWT.RIGHT_TO_LEFT trick, but
that can be considered as a hack.

Greetings from Bremen,

- Daniel
Re: Placing label text on left side of check box [message #514999 is a reply to message #514972] Wed, 17 February 2010 13:15 Go to previous message
Biju  is currently offline Biju Friend
Messages: 4
Registered: January 2010
Junior Member
Thanks for the solution. SWT.RIGHT_TO_LEFT worked.

The problem with label and button is on tab chage the check box selection won't be there.

Thanks,
Biju
Previous Topic:Remove "Software updates" and "Key assist..." actions from help menu
Next Topic:Handler enablement doesn't work unless widow focus changes
Goto Forum:
  


Current Time: Sun Nov 23 10:12:48 GMT 2014

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

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