Avoid flickering when resize a table [message #1132820] |
Fri, 11 October 2013 08:06  |
Eclipse User |
|
|
|
Is there a reason for not avoid redrawing during the paintLayer procedure in NatLayerPainter?
If I resize a table I get a flickering GUI as long i do not set the control to redraw false.
Adding the following code the the paintLayer method in NatLayerPainter the flickering gets massively reduced.
org.eclipse.nebula.widgets.nattable.painter.layer.NatLayerPainter
public void paintLayer(ILayer natLayer, GC gc, int xOffset, int yOffset, Rectangle rectangle, IConfigRegistry configRegistry) {
m_rowHeightCache.clearCache();
try {
natTable.setRedraw(false);
// do stuff
}
finally {
natTable.setRedraw(true);
}
}
-Andreas
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03294 seconds