Recent

Author Topic: ZVDateTimePicker compilation errors  (Read 6877 times)

JD

  • Hero Member
  • *****
  • Posts: 1847
ZVDateTimePicker compilation errors
« on: May 31, 2010, 04:55:22 pm »
Hi Zoran,

I recently upgraded my Lazarus installation to version 0.9.29/fpc 2.4.0 svn 24727 & since then I've noticed that the calender of the ZVDateTimePicker 1.0 flickers continuously & bugs out.

So I upgraded to ZVDateTimePicker 1.2 but now I have a different problem in the following code snippet in zvdatetimepicker.pas

Code: [Select]
   {$IFDEF LCL_0_9_29_OR_AFTER}
    class function GetControlClassDefaultSize: TSize; override;
    {$ELSE}
    class function GetControlClassDefaultSize: TPoint; override;
    {$ENDIF}


When I tried installing the component, I got an error on the following line
Code: [Select]
   class function GetControlClassDefaultSize: TSize; override;

saying "There is no method in an ancestor class to be overridden".

So I just quickly hacked the code by removing the override as follows
Code: [Select]
   class function GetControlClassDefaultSize: TSize; //override;

After that I was able to install the component. The flicker is gone but I still can't display the calender to change the dates. I'd appreciate it if you could shed some light on this problem.

JD
Windows (10) - Lazarus 2.1/FPC 3.2 (svn 64160 built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (svn 64380 built using fpcupdeluxe),
Delphi

Indy 10.6 series; mORMot; Zeos 7.3; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

Zoran

  • Hero Member
  • *****
  • Posts: 1763
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: ZVDateTimePicker compilation errors
« Reply #1 on: June 01, 2010, 02:24:55 am »
Hi, JD,

Version 1.2 works well with recent svn versions of Lazarus, as well as with stable Lazarus version 0.9.28.

If you want to use 0.9.29, rev. 24727, which is I think about two months old, please see if this topic can help you:
http://www.lazarus.freepascal.org/index.php/topic,9206.0
There is file attached in some my post which solved the flickering problem which appeared due to some svn bug from that time.

Tell me if this helps.

Still, I would recomend to you updating Lazarus to more recent svn version.

Zoran

  • Hero Member
  • *****
  • Posts: 1763
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: ZVDateTimePicker compilation errors
« Reply #2 on: June 01, 2010, 03:01:27 am »
See, you picked just the Lazarus revision which is mentioned here as a buggy one:
http://bugs.freepascal.org/view.php?id=16301 and http://bugs.freepascal.org/view.php?id=16293

This quote is from 20. april:
Quote
It seems to be fixed since yesterday (between revision 24727 and 24772).

 :)
Why do you update now to revision from april?
« Last Edit: June 01, 2010, 03:04:08 am by Zoran »

JD

  • Hero Member
  • *****
  • Posts: 1847
Re: ZVDateTimePicker compilation errors
« Reply #3 on: June 01, 2010, 03:13:39 am »
See, you picked just the Lazarus revision which is mentioned here as a buggy one:
http://bugs.freepascal.org/view.php?id=16301 and http://bugs.freepascal.org/view.php?id=16293
 :)
Why do you update now to revision from april?

I don't update Lazarus often. I try to retain a stable working version as long as I can because I have a large collection of components. I was forced to update to the April revision because a component I wanted - LazFlexCel - did not work with my January revision.

Now I have LazFlexCel but ZVDateTimePicker and ExtPascal are acting funny. I also had to hack LuizAmerico's VirtualTree component to get it to work for my April version!

I tried the svn version from yesterday but it has its own idiosyncrasies. For example, I prefer to hide the IDE when I'm debugging & running my programs but the new version does NOT completely hide the IDE. It minimizes the toolbar & keeps it on the top right corner of the screen. So when I close my program, I am forced to resize the toolbar everytime. It was such a bother that I uninstalled it.  :o

I might now be forced to reinstall it if it will solve my ZVDateTimePicker problems.  :( :(

Looking forward to version 1.0 of Lazarus.  :-\
« Last Edit: June 01, 2010, 12:56:49 pm by JD »
Windows (10) - Lazarus 2.1/FPC 3.2 (svn 64160 built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (svn 64380 built using fpcupdeluxe),
Delphi

Indy 10.6 series; mORMot; Zeos 7.3; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

JD

  • Hero Member
  • *****
  • Posts: 1847
Re: ZVDateTimePicker compilation errors
« Reply #4 on: June 01, 2010, 03:59:31 am »
If you want to use 0.9.29, rev. 24727, which is I think about two months old, please see if this topic can help you:
http://www.lazarus.freepascal.org/index.php/topic,9206.0
There is file attached in some my post which solved the flickering problem which appeared due to some svn bug from that time.

Tell me if this helps.

Still, I would recomend to you updating Lazarus to more recent svn version.

Thanks Zoran. Your patch worked. I'll update to a more recent svn version as soon as I have the free time. If I'm lucky everything I have installed will work unaltered, if not I might have to spend a whole day hacking through code to get a working installation as I've done in the past.
Windows (10) - Lazarus 2.1/FPC 3.2 (svn 64160 built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (svn 64380 built using fpcupdeluxe),
Delphi

Indy 10.6 series; mORMot; Zeos 7.3; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

 

TinyPortal © 2005-2018