Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » set Column width
set Column width [message #659578] Mon, 14 March 2011 16:12 Go to next message
ash is currently offline ashFriend
Messages: 142
Registered: July 2010
Senior Member
Hi,

How set table viewer column width to fit the
data width.

Example :

Data is 20 pixel
Column width 10 pixel

Now table column width should automatically resize to 20 pixel automatically based on data width ..

Thanks
Ashok
Re: set Column width [message #659675 is a reply to message #659578] Tue, 15 March 2011 08:28 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 493
Registered: July 2009
Senior Member

Hi,

Sounds like a nice feature but as far as I know it does not exist. I think
you will have to add your own listener to achieve this. Try the SWT
newsgroup.


http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/org.ecli pse.swt.snippets/src/org/eclipse/swt/snippets/Snippet77.java

Regards,

Wim

> Hi,
>
> How set table viewer column width to fit the
> data width.
>
> Example :
>
> Data is 20 pixel
> Column width 10 pixel
>
> Now table column width should automatically resize to 20 pixel
automatically based on data width ..
>
> Thanks
> Ashok
Re: set Column width [message #660054 is a reply to message #659578] Wed, 16 March 2011 17:14 Go to previous messageGo to next message
Lakshmi P ShanmugamFriend
Messages: 279
Registered: July 2009
Location: India
Senior Member
Hi,

The TableColumn doesn't resize automatically. But you can call TableColumn.pack() when you want to resize the column width to the item's width.


Lakshmi P Shanmugam
Re: set Column width [message #663189 is a reply to message #660054] Mon, 04 April 2011 09:26 Go to previous messageGo to next message
ash is currently offline ashFriend
Messages: 142
Registered: July 2010
Senior Member
Hi,

Does TableColumn.pack() work on Solaries ?


Thanks
Ashok
Re: set Column width [message #664784 is a reply to message #663189] Tue, 12 April 2011 01:26 Go to previous message
ash is currently offline ashFriend
Messages: 142
Registered: July 2010
Senior Member
Can any one help me on this .....
Previous Topic:instance of same View placing
Next Topic:change the behaviour of the properties view.
Goto Forum:
  


Current Time: Tue Apr 16 11:40:02 GMT 2024

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

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

Back to the top