TableViewer with ControlListener [message #459574] |
Thu, 11 August 2005 13:02 |
Eclipse User |
|
|
|
Originally posted by: michal.tomcanyi.opentech.cz
Hi all,
is it possible to use Snippet 77 (ControlListener resizing columns
of a Table) with a table being displayed by a TableViewer?
The table usually does not display properly. Sometimes the horizontal bar
where column names reside is drawn and an empty background.
(I've seen this behaviour when I tried to resize the table under its
preferred size) If ControlListener is not a suitable solution, are there
any other ways to resize columns in TableViewer?
I'm running 3.0.2 on Linux/GTK.
Example code:
TableViewer viewer = new TableViewer(parent,style);
viewer.getTable().addControlListener(new ControlListener() {
public void controlResized(ControlEvent e) {
/*
* Snippet77 resize code here
*/
}
});
Thank you for suggestions,
Michal
|
|
|
Powered by
FUDForum. Page generated in 0.03164 seconds