| [news.eclipse.platform.swt] Re: LabelProvider and icon |
This is a known Windows "problem". It's actually working as intended (I think, although I don't see this behavior in most windows apps), but I agree it's nasty.
The trick is to create column before all your other ones, but set it to width 0 and to not be resizable (nor moveable if you do that stuff), so basically it's invisible. Then just put all your data in the the other columns (at index 1+) and images will show up correctly without spacing out any other columns.
I should mention however, that this trick does not work on Mac. So if you are doing stuff for both platforms, do a mac/windows check before you create that, and remember to offset your counts by 1 depending on the platform. I don't know how Linux does it.
Emil