Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to stop Text from resizing ?
How to stop Text from resizing ? [message #463359] Fri, 04 November 2005 09:41 Go to next message
Bhavani is currently offline BhavaniFriend
Messages: 5
Registered: July 2009
Junior Member
Hi,
I have a Text widget which is empty at start. I enter a long string into
it and close the dialog. Next time when i open the same dialog, then the
size of the Text widget is resized to fit the full string.

How do i stop the Text widget from resizing?
Re: How to stop Text from resizing ? [message #463361 is a reply to message #463359] Fri, 04 November 2005 10:27 Go to previous messageGo to next message
venkataramana m is currently offline venkataramana mFriend
Messages: 86
Registered: July 2009
Member
May be try specifying widthhint for textwidget (if you are using some layoutmgr for container-composite), also probably turn on horizontal_scroll style on text-widget. Dont know if they work, but give them a try.

Thanks
Venkat
Re: How to stop Text from resizing ? [message #463377 is a reply to message #463359] Fri, 04 November 2005 19:09 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
If you are using a GridLayout, you can set GridData.width and
GridData.height for the layout data of eth Text widget.

"Bhavani" <bhavani.kumar@gmail.com> wrote in message
news:92be148b1e528511f660832e5e72b726$1@www.eclipse.org...
> Hi,
> I have a Text widget which is empty at start. I enter a long string into
> it and close the dialog. Next time when i open the same dialog, then the
> size of the Text widget is resized to fit the full string.
>
> How do i stop the Text widget from resizing?
>
>
>
Previous Topic:ComboBoxCellEditor and TableViewer
Next Topic:Virtual table problems
Goto Forum:
  


Current Time: Fri Mar 29 09:18:51 GMT 2024

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

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

Back to the top