Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Table Resize when parent resize
Table Resize when parent resize [message #452559] Tue, 22 March 2005 13:39 Go to next message
Eclipse UserFriend
Originally posted by: nightblue99.yahoo.com

Hi;

Lets have a two columns(Name of columns Column1,Column2) table in
composite. When composite width inscreasing horizontally table adds one
column without columnnames. How can I solve this; I just want to Column2
resize horizontally and I do not see any more columns

Thanks;
Re: Table Resize when parent resize [message #452566 is a reply to message #452559] Tue, 22 March 2005 14:07 Go to previous messageGo to next message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 396
Registered: July 2009
Senior Member
NightBlue,

Have you tried adding a ControlListener to the Table to listen for the
controlResized event, and resize the columns accordingly?

- Jeff

NightBlue wrote:
> Hi;
>
> Lets have a two columns(Name of columns Column1,Column2) table in
> composite. When composite width inscreasing horizontally table adds one
> column without columnnames. How can I solve this; I just want to Column2
> resize horizontally and I do not see any more columns
>
> Thanks;
>
Re: Table Resize when parent resize [message #452575 is a reply to message #452566] Tue, 22 March 2005 22:54 Go to previous message
Eclipse UserFriend
Originally posted by: nightblue99.yahoo.com

Hi;

I tried your advise and it works thanks a lot
Re: Table Resize when parent resize [message #452577 is a reply to message #452559] Tue, 22 March 2005 21:40 Go to previous message
Eclipse UserFriend
Originally posted by: rudolf.traunmueller.maat.at

Hi,




You can also create a new TableLayout. The original TableLayout layouts the
table columns only once. However, you can take the code from

org.eclipse.jface.viewers.TableLayout and use it to create a new layout, say
ResizingTableLayout in which you remove the following lines from

the layout(Composite c, boolean flush) method:



if (!firstTime)

return;



Now the columns are rearrangced each time the size of the table changes. The
proper size of the single columns can be achieved by setting the widths

of the columns or attaching ColumnWeightData objects to the TableLayout.





"NightBlue" <nightblue99@yahoo.com> schrieb im Newsbeitrag
news:<9cd1c7d647373eb3de2d815e753c18a3$1@www.eclipse.org>...

> Hi;

>

> Lets have a two columns(Name of columns Column1,Column2) table in

> composite. When composite width inscreasing horizontally table adds one

> column without columnnames. How can I solve this; I just want to Column2

> resize horizontally and I do not see any more columns

>

> Thanks;

>

"NightBlue" <nightblue99@yahoo.com> schrieb im Newsbeitrag
news:9cd1c7d647373eb3de2d815e753c18a3$1@www.eclipse.org...
> Hi;
>
> Lets have a two columns(Name of columns Column1,Column2) table in
> composite. When composite width inscreasing horizontally table adds one
> column without columnnames. How can I solve this; I just want to Column2
> resize horizontally and I do not see any more columns
>
> Thanks;
>
Previous Topic:serialVersionUID for EventObject
Next Topic:Select text by position
Goto Forum:
  


Current Time: Sat Jul 20 05:01:10 GMT 2019

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

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

Back to the top