Page 1 of 1

InvalidateRgn on TsgDrawingNavigator

Posted: 25 Jun 2007, 15:52
by avimms
Is it possible to refresh only a part of DXF image shown on the TsgDrawingNavigator component. I am drawing externally onto the TsgDrawingNavigator canvas. So if I need to clear my drawings I am required to call TsgDrawingNavigator.Refresh, which causing a considerablt flicker. I would like to avoid this flicker. So I am trying to call InvalidateRgn by passing TsgDrawingNavigator.canvas's handle. But I still I can see that there is flicker.

Please let me if it is possible to use InvalidateRgn onto the canvas. I am using DXF Import VCL v6.1, Delphi 7 Enterprise edition.

Regards,
Avinash

Posted: 27 Jun 2007, 15:59
by support
Hello Avinash,

We recommwnd to use the following code:

Code: Select all

...
<b>var</b>
  vRect: TRect;
<b>begin</b>
...
  Windows.InvalidateRect(sgPaintBox.Handle, @vRect, True);
...
<b>end</b>;
Sergey.

Please post questions to the forum or write to support@cadsofttools.com