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 04:41 Go to next message
Bhavani is currently offline Bhavani
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 05:27 Go to previous messageGo to next message
venkataramana m is currently offline venkataramana m
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 14:09 Go to previous message
Veronika Irvine is currently offline Veronika Irvine
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 Aug 29 16:36:49 EDT 2014

Powered by FUDForum. Page generated in 0.01676 seconds