Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-02

Strange screen flickering Lazarus revision > 57000

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Landmesser John

i have lazarus trunk revision 57333 and observe strange screen flickering with a DBGrid and Oracle Database connection.

See Revision 57000 without flickering

https://drive.google.com/file/d/1671s-JuIM5z7KkwRU8pbX6Nqt53sDACI/view?usp=sharing

( hope that link is ok )

compare with Revision 57333,  heavy screen flickering

https://drive.google.com/file/d/1yZHltOBPt47i6S2jeovGu9W3ScUX8-Zg/view?usp=sharing

Info:

Lazarus 1.9.0 57333 FPC 3.0.4 i386-win32-win32/win64

Windows XP SP3

No flickering with same app and Windows 2003 !!

Reply by email

John Landmesser
to Juha Manninen

the delivered patch in https://bugs.freepascal.org/view.php?id=33198 is:

Index: grids.pas
===================================================================
--- grids.pas    (revision 57332)
+++ grids.pas    (working copy)
@@ -9414,6 +9414,8 @@
  procedure TCustomGrid.Loaded;
  begin
    inherited Loaded;
+  if not (csDesigning in ComponentState) then
+    DoubleBuffered := DoubleBuffered or
(GetSystemMetrics(SM_REMOTESESSION)=0); // force DoubleBuffered if not
used in remote session
    VisualChange;
  end;

but in Grid.pas Revision 57333

procedure TCustomGrid.Loaded;
begin
   inherited Loaded;
   VisualChange;
end;

so the patch was never applied??

Juha Manninen wrote 11 lines
This report is about the same issue: https://bugs.freepascal.org/view.php?id=33198 On Tue, Feb 20, 2018 at 10:44 AM, Landmesser John via Lazarus wrote: > Lazarus 1.9.0 57333 FPC 3.0.4 i386-win32-win32/win64 > Windows XP SP3 > No flickering with same app and Windows 2003 !! Maybe the solution should be specific to LCL-Win32 and Windows version. Juha

Reply by email

Landmesser John
to John Landmesser

patch applied to my local copy of lcl --> issue is gone !!

John Landmesser wrote 43 lines
the delivered patch in https://bugs.freepascal.org/view.php?id=33198 is: Index: grids.pas =================================================================== --- grids.pas    (revision 57332) +++ grids.pas    (working copy) @@ -9414,6 +9414,8 @@  procedure TCustomGrid.Loaded;  begin    inherited Loaded; +  if not (csDesigning in ComponentState) then +    DoubleBuffered := DoubleBuffered or (GetSystemMetrics(SM_REMOTESESSION)=0); // force DoubleBuffered if not used in remote session    VisualChange;  end; but in Grid.pas Revision 57333 procedure TCustomGrid.Loaded; begin   inherited Loaded;   VisualChange; end; so the patch was never applied?? Am 20.02.2018 um 14:24 schrieb Juha Manninen via Lazarus: > This report is about the same issue: >   https://bugs.freepascal.org/view.php?id=33198 > > On Tue, Feb 20, 2018 at 10:44 AM, Landmesser John via Lazarus > wrote: >> Lazarus 1.9.0 57333 FPC 3.0.4 i386-win32-win32/win64 >> Windows XP SP3 >> No flickering with same app and Windows 2003 !! > Maybe the solution should be specific to LCL-Win32 and Windows version. > > Juha

Reply by email