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] Thu, 29 December 2011 19:11 Go to next message
John Lussmyer is currently offline John Lussmyer
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] Thu, 29 December 2011 22:19 Go to previous messageGo to next message
Timothy Vogel is currently offline Timothy Vogel
Messages: 59
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] Thu, 29 December 2011 23:21 Go to previous message
John Lussmyer is currently offline John Lussmyer
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: Wed Jul 30 09:18:08 EDT 2014

Powered by FUDForum. Page generated in 0.02046 seconds