Forum > LCL

ZVDateTimePicker compilation errors

(1/1)

JD:
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: ---    {$IFDEF LCL_0_9_29_OR_AFTER}
    class function GetControlClassDefaultSize: TSize; override;
    {$ELSE}
    class function GetControlClassDefaultSize: TPoint; override;
    {$ENDIF}

--- End code ---


When I tried installing the component, I got an error on the following line

--- Code: ---    class function GetControlClassDefaultSize: TSize; override;

--- End code ---

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: ---    class function GetControlClassDefaultSize: TSize; //override;

--- End code ---

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

Zoran:
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:
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).
--- End quote ---

 :)
Why do you update now to revision from april?

JD:

--- Quote from: Zoran 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
 :)
Why do you update now to revision from april?

--- End quote ---

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.  :-\

JD:

--- Quote from: Zoran on June 01, 2010, 02:24:55 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.

--- End quote ---

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.

Navigation

[0] Message Index

Go to full version