Table Resize when parent resize [message #452559] |
Tue, 22 March 2005 13:39 |
Eclipse User |
|
|
|
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 #452577 is a reply to message #452559] |
Tue, 22 March 2005 21:40 |
Eclipse User |
|
|
|
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;
>
|
|
|
Powered by
FUDForum. Page generated in 0.02919 seconds