Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Changing the size of a SWT textbox
Changing the size of a SWT textbox [message #451419] Tue, 01 March 2005 15:51 Go to next message
Daren is currently offline DarenFriend
Messages: 2
Registered: July 2009
Junior Member
How do I change the width and length of a SWT Text box? I am intending to
create a Text box that supports free text and multiple lines of text. I am
able to cater for the multiple lines by inserting SWT.MULTI, but how do I
increase the size of the text box?
Re: Changing the size of a SWT textbox [message #451427 is a reply to message #451419] Tue, 01 March 2005 21:35 Go to previous message
Simone Gianni is currently offline Simone GianniFriend
Messages: 29
Registered: July 2009
Junior Member
Hi Daren,
I think you should look at the documentation for the layout you are
using on the Composite containing your textbox. The size is minly
decided by the layout data passed in textbox.setLayoutData. Otherwise,
you should have a look at the textbox.setSize() method.

Simone

Daren wrote:

> How do I change the width and length of a SWT Text box? I am intending
> to create a Text box that supports free text and multiple lines of text.
> I am able to cater for the multiple lines by inserting SWT.MULTI, but
> how do I increase the size of the text box?
>
Previous Topic:Extracting contents from a TableViewer object
Next Topic:Scrollable image
Goto Forum:
  


Current Time: Thu Apr 25 09:52:03 GMT 2024

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

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

Back to the top