[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Fix a column of a table

Stefan Junghans schrieb:
Hi,
I want to fix the first column of a table. If the table scrolls to the right side, the first column should be visible all the time (like in Excel where you can fix a row).


Is there a possibility to fix a row of a table at a special position????
How can this challenge be realized???

You can try this: Add a imaginary, always empty 0th column, add PaintListeners which controls your resizing and then set the width of the 0th column to the range which is scrolled out of your view. set the width of the 1st column to your desired size and scale following columns (first the 2nd, then the 3rd, and so on) down to the right size (up to zero).


Thanks for your help!

HTH

A