Avoid flickering when resize a table [message #1132820] |
Fri, 11 October 2013 12: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
|
|
|
|
|
Re: Avoid flickering when resize a table [message #1132927 is a reply to message #1132851] |
Fri, 11 October 2013 13:36 |
Eclipse User |
|
|
|
I got the same behavior.
The million question for now is:
Is a redraw(false) call the wrong approach or do we have an other issue to solve? The 'org.eclipse.scout.rt.ui.swt.basic.table.painter.patched.TextPainter.paintCell(ILayerCell, GC, Rectangle, IConfigRegistry)' method gets called "forever and ever again" in this example. Try to find the scheduler of these paint events...
-andreas
|
|
|
|
Powered by
FUDForum. Page generated in 0.03638 seconds