Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Auto-resize Table Column listener?
Auto-resize Table Column listener? [message #772509] Fri, 30 December 2011 00:11 Go to next message
John Lussmyer is currently offline John LussmyerFriend
Messages: 96
Registered: December 2010
Member
Yes, I've seen the example code on writing a ControlListener to resize table columns when the table is resized.

I'm wondering if anyone has a General Purpose one that can be added to any table, and resize the columns proportionally to their old sizes? (I.e if table gets 10% narrow, it makes each column 10% narrower?)

Seems like one should exist already somewhere...
Re: Auto-resize Table Column listener? [message #772555 is a reply to message #772509] Fri, 30 December 2011 03:19 Go to previous messageGo to next message
Timothy Vogel is currently offline Timothy VogelFriend
Messages: 71
Registered: July 2009
Member
You are looking for ColumnWeightData. Check out http://eclipsenuggets.blogspot.com/2007/11/one-of-less-prominent-novelties-in.html

Hope this helps,
Timothy Vogel
Re: Auto-resize Table Column listener? [message #772568 is a reply to message #772555] Fri, 30 December 2011 04:21 Go to previous message
John Lussmyer is currently offline John LussmyerFriend
Messages: 96
Registered: December 2010
Member
Thanks, that's exactly what I needed!
Previous Topic:Project Explore/Package Explore question
Next Topic:Sideways tree control?
Goto Forum:
  


Current Time: Sun Dec 21 04:07:14 GMT 2014

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

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