Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to create check type Button with text on the left side of the box?
How to create check type Button with text on the left side of the box? [message #440505] Tue, 03 August 2004 15:38 Go to next message
Sean Neeley is currently offline Sean NeeleyFriend
Messages: 22
Registered: July 2009
Junior Member
Is this possible in SWT? I tried, but do not get what I expect:
Button button = new Button(parent, SWT.CHECK | SWT.LEFT);
The location of the text is the same if I try any of these:
Button button = new Button(parent, SWT.CHECK);
Button button = new Button(parent, SWT.CHECK | SWT.LEFT);
Button button = new Button(parent, SWT.CHECK | SWT.RIGHT);

Help!

- Sean
Re: How to create check type Button with text on the left side of the box? [message #440533 is a reply to message #440505] Tue, 03 August 2004 23:01 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
You can't. The position of the text is part of the look and feel for a
check button (although some platforms let you change it).

"Sean Neeley" <sean.neeley@dbcsoftware.com> wrote in message
news:ceobef$13m$1@eclipse.org...
> Is this possible in SWT? I tried, but do not get what I expect:
> Button button = new Button(parent, SWT.CHECK | SWT.LEFT);
> The location of the text is the same if I try any of these:
> Button button = new Button(parent, SWT.CHECK);
> Button button = new Button(parent, SWT.CHECK | SWT.LEFT);
> Button button = new Button(parent, SWT.CHECK | SWT.RIGHT);
>
> Help!
>
> - Sean
Re: How to create check type Button with text on the left side of the box? [message #440686 is a reply to message #440533] Fri, 06 August 2004 09:08 Go to previous message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
Steve Northover <steve_northover@ca.ibm.com> wrote:

Look also on BooleanFieldEditor, they create for your case Label and then
Button without text.


> You can't. The position of the text is part of the look and feel for a
> check button (although some platforms let you change it).

> "Sean Neeley" <sean.neeley@dbcsoftware.com> wrote in message
> news:ceobef$13m$1@eclipse.org...
>> Is this possible in SWT? I tried, but do not get what I expect:
>> Button button = new Button(parent, SWT.CHECK | SWT.LEFT);
>> The location of the text is the same if I try any of these:
>> Button button = new Button(parent, SWT.CHECK);
>> Button button = new Button(parent, SWT.CHECK | SWT.LEFT);
>> Button button = new Button(parent, SWT.CHECK | SWT.RIGHT);
>>
>> Help!
>>
>> - Sean



--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)


Konstantin Scheglov,
Google, Inc.
Previous Topic:how to getting Ole events from excel
Next Topic:Equivalent class in SWT like BasicComboBoxUI in Swing
Goto Forum:
  


Current Time: Thu Apr 25 10:26:15 GMT 2024

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

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

Back to the top