Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Text Widget Width
Text Widget Width [message #465586] Thu, 15 December 2005 15:36 Go to next message
Alisa Smith is currently offline Alisa SmithFriend
Messages: 6
Registered: July 2009
Junior Member
I am trying to set the width of a text widget to a specific size (width =
20) using setSize. However, when I set the contents (setText) to lets say
"0" the width size returns back to 1. I have tried using setTextLimit as
well but as soon as I set the contents it shrinks back down. How can I
keep the width while defaulting the contents?

Thanks in advance for any help.
Re: Text Widget Width [message #465602 is a reply to message #465586] Thu, 15 December 2005 18:38 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Are you using a layout? Do you have some example code showing the problem?

"Alisa Smith" <smithali@ugs.com> wrote in message
news:f139dd46fae9b56d7c51d51516c02cf1$1@www.eclipse.org...
>I am trying to set the width of a text widget to a specific size (width =
>20) using setSize. However, when I set the contents (setText) to lets say
>"0" the width size returns back to 1. I have tried using setTextLimit as
>well but as soon as I set the contents it shrinks back down. How can I
>keep the width while defaulting the contents?
>
> Thanks in advance for any help.
>
Previous Topic:problems in using SWT browser
Next Topic:SWT button
Goto Forum:
  


Current Time: Sat Apr 27 01:53:51 GMT 2024

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

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

Back to the top