[Lazarus] TAChart cannot compile with fpc 3.0.0 after rev. 57277

2018-02-20 Thread Torsten Bonde Christiansen via Lazarus

Hi all.

After rev. 57277 there is a statement (line 536, pos 24) in 
tachartaxis.pas which uses the overloaded operater "+" for TPoint.


I don't think this exist in fpc 3.0.0 and hence trunk no longer 
compiles. Is this on purpose - ie. is it required to use fpc 3.0.4 to 
compile trunk or is this a bug?


Kind regards,
Torsten.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Form events firing order and count

2018-02-20 Thread R0b0t1 via Lazarus
On Mon, Feb 19, 2018 at 7:09 AM, Ondrej Pokorny via Lazarus
 wrote:
> True words. IMO we can apply the same to LCL events: the order/count is an
> implementation detail and depends on the underlying widgetset.
>

I agree, and am glad to find this was brought up. On the other hand, I
think it would be good to know what is going on in the event loop of
the application. There are some inconsistencies in naming and how
threading "works" or does not work that I am still baffled by. This is
likely not a Lazarus issue, and may be something inherited from
Delphi.

I think the goal could be aided with a high level document on what is
going on, as I've had it explained to me a number of times but am
still confused.

Cheers,
 R0b0t1
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Form events firing order and count

2018-02-20 Thread Martok via Lazarus
> I will mention 1 case in point. Const parameters.
> 
> For years, people mistakenly assumed that Const parameters were 
> be passed by reference if they were "big" (records), a behaviour which
> Delphi exhibited.
People actually believed that? When the documentation explicitly stated that var
parameters are the *only* byrefs, everything else being passed by value (which
technically makes the special case for large objects a bug)? Oh well.

One might argue if code is documentation for EOL products - they can't change
their minds about Turbo Pascal any more. And with the long standing policy of
being source-code compatible all the way back, that should mean something
regarding the same language constructs in current versions. But still, Delphi is
a moving target, and some things have long branched way past the point where one
might aim to be "compatible".

Why do I feel we're both arguing the same side here? ;-)


--Martok

-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Strange ComboBox behavior (Windows)

2018-02-20 Thread Ondrej Pokorny via Lazarus

On 20.02.2018 8:40, Rolf Wetjen(rolf.wetjen--- via Lazarus wrote:
Is there any interest in a patch to solve MS Windows issues although 
the patch would add some windows specific code to stdctrls.pp and 
customcombobox.inc? I've a solution for the "AutoSelect=false" one and 
an idea for the second one.


There definitely is interest in fixing bugs. OS/WS/platform-specific 
code belongs to the widgetset code: win32wsstdctrls.pp and similar.


Ondrej
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Strange screen flickering Lazarus revision > 57000

2018-02-20 Thread Landmesser John via Lazarus

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




Am 20.02.2018 um 14:56 schrieb John Landmesser via Lazarus:

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




--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Strange screen flickering Lazarus revision > 57000

2018-02-20 Thread John Landmesser via Lazarus

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


--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Strange screen flickering Lazarus revision > 57000

2018-02-20 Thread 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
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Strange screen flickering Lazarus revision > 57000

2018-02-20 Thread Landmesser John via Lazarus
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 !!

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus