Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Is there a SWT Widget that creates a Label & Text for you all together?
Is there a SWT Widget that creates a Label & Text for you all together? [message #463587] Wed, 09 November 2005 23:13 Go to next message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
Hi,

Instead of creating a Label and a Text separately, is there one widget
that will create both for you? I look in the snippets, but can't find it.

Thanks
Re: Is there a SWT Widget that creates a Label & Text for you all together? [message #463588 is a reply to message #463587] Thu, 10 November 2005 01:50 Go to previous messageGo to next message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
That would be a negative. You could build it yourself fairly simply by using an instance of both and StackLayout.
Re: Is there a SWT Widget that creates a Label & Text for you all together? [message #463601 is a reply to message #463587] Thu, 10 November 2005 16:12 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
CLabel doesn't create two widgets but can display a label and text.

"AL" <unbonnevie@yahoo.com> wrote in message
news:dktvqi$rc2$1@news.eclipse.org...
> Hi,
>
> Instead of creating a Label and a Text separately, is there one widget
> that will create both for you? I look in the snippets, but can't find it.
>
> Thanks
Re: Is there a SWT Widget that creates a Label & Text for you all together? [message #463607 is a reply to message #463587] Thu, 10 November 2005 16:36 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
What do you mean by a label and text? Do you mean something like:

Name: __________________

where "Name:" is a label and "______" is a text field where the user can
enter text?

If so, there is not a single widget that creates this but the two widgets
Label and Text can be placed using GridLayout or FormLayout.

"AL" <unbonnevie@yahoo.com> wrote in message
news:dktvqi$rc2$1@news.eclipse.org...
> Hi,
>
> Instead of creating a Label and a Text separately, is there one widget
> that will create both for you? I look in the snippets, but can't find it.
>
> Thanks
Re: Is there a SWT Widget that creates a Label & Text for you all together? [message #463614 is a reply to message #463607] Thu, 10 November 2005 18:40 Go to previous message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
Yes, you are correct...Actually, Eclipse has the StringFieldEditor class
that builds the label and the text widget together side by side.

Thanks, BTW, for the *ALL* the great answers on this group!

Veronika Irvine wrote:

> What do you mean by a label and text? Do you mean something like:
>
> Name: __________________
>
> where "Name:" is a label and "______" is a text field where the user can
> enter text?
>
> If so, there is not a single widget that creates this but the two widgets
> Label and Text can be placed using GridLayout or FormLayout.
>
> "AL" <unbonnevie@yahoo.com> wrote in message
> news:dktvqi$rc2$1@news.eclipse.org...
>
>>Hi,
>>
>>Instead of creating a Label and a Text separately, is there one widget
>>that will create both for you? I look in the snippets, but can't find it.
>>
>>Thanks
>
>
>
Previous Topic:Widget has the wrong parent, tabfolder in tabfolder
Next Topic:In SWT Browser, hotmail web site do not work correctly
Goto Forum:
  


Current Time: Thu Apr 25 06:01:02 GMT 2024

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

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

Back to the top