Recent

Author Topic: ZVDateTimePicker flicker and not show the calendar  (Read 8232 times)

luk2009

  • Jr. Member
  • **
  • Posts: 51
ZVDateTimePicker flicker and not show the calendar
« on: April 20, 2010, 02:11:49 am »

http://img682.imageshack.us/img682/7628/lazarusdatetimeerror.jpg

my ZVdatetimepicker stopped working and now only flashes when I press the arrow

i used the closeup event:
Code: [Select]
procedure TFRQcent.ZVDateTimePicker1CloseUp(Sender: TObject);
begin
  inicio := formatdatetime('yyyy.mm.dd hh:nn', zvdatetimepicker1.DateTime);
end;           

how I can fix this?

thanks

Zoran

  • Hero Member
  • *****
  • Posts: 1829
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: ZVDateTimePicker flicker and not show the calendar
« Reply #1 on: April 20, 2010, 08:55:36 am »
I just downloaded this morning's Lazarus snapshot and the problem appeared. This is really unpleasent surprise. I can confirm the problem you described. They must have changed something during last three days, it works perfectly with Lazarus build from last friday.

I'll try to locate the problem and see if I can find the workaround for this. I hope to fix it quickly.

Zoran

  • Hero Member
  • *****
  • Posts: 1829
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: ZVDateTimePicker flicker and not show the calendar
« Reply #2 on: April 20, 2010, 10:01:28 am »
The native LCL's DateEdit control doesn't work either...
Something is obviously wrong in svn trunk...

I reported the problem on bug tracker (http://bugs.freepascal.org/view.php?id=16301).  I expect this to be solved in the SVN.
So far I will not try searching for problem in my code (ZVDateTimePicker), I'll wait for Lazarus developers' response on this.

There is something buggy in latest svn, please install older Lazarus version untill this is solved.

luk2009

  • Jr. Member
  • **
  • Posts: 51
Re: ZVDateTimePicker flicker and not show the calendar
« Reply #3 on: April 20, 2010, 11:18:50 am »
thanks for the info
in version 0.9.28 with Ubuntu I have no such problem
the problem only occurs in my version 0.9.29 snapshop of 19.04.2010 in Windows  7

I want to know if I can install the previous snapshop because I have some saved on my pc
« Last Edit: April 20, 2010, 11:22:50 am by luk2009 »

Zoran

  • Hero Member
  • *****
  • Posts: 1829
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: ZVDateTimePicker flicker and not show the calendar
« Reply #4 on: April 20, 2010, 11:53:01 am »
thanks for the info
in version 0.9.28 with Ubuntu I have no such problem
the problem only occurs in my version 0.9.29 snapshop of 19.04.2010 in Windows  7

I want to know if I can install the previous snapshop because I have some saved on my pc


Yes, the problem is caused obviously by some very recent changes, I have here (at work) version from 13. april where it works perfectly, but I know that at home I had no problem and I know that snapshot is not older than friday (16. april).

Zoran

  • Hero Member
  • *****
  • Posts: 1829
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: ZVDateTimePicker flicker and not show the calendar
« Reply #5 on: April 20, 2010, 12:11:17 pm »
I found a workaround.
If you overwrite zvdatetimepicker.pas with the file attached to this message, you can use it with this mornings snapshot. I won't apply this in the ZVDateTimePicker distribution for now, until I see what will happen with svn.

Zoran

  • Hero Member
  • *****
  • Posts: 1829
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: ZVDateTimePicker flicker and not show the calendar
« Reply #6 on: April 20, 2010, 12:36:06 pm »
I noticed that two bugs are there in new svn that caused ZVDateTimePicker's buggy behaviour.

1. The form's OnDeactivate event is called immidiately when the form shows on screen. The simple workaround is to move the assignment of this event to another part of code.

2. Setting form's ShowInTaskbar property to stNever causes the form to hang. I just removed the line which sets it from the code. This is okay in windows, as default form's behaviour is not to appear in taskbar.

This is what I did in file attached to my previous post. You can use it with todays Lazarus snapshot.

luk2009

  • Jr. Member
  • **
  • Posts: 51
Re: ZVDateTimePicker flicker and not show the calendar
« Reply #7 on: April 21, 2010, 05:57:33 am »
perfect working again.  overwrite zvdatetimepicker.pas

thanks for all

Zoran

  • Hero Member
  • *****
  • Posts: 1829
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: ZVDateTimePicker flicker and not show the calendar
« Reply #8 on: April 21, 2010, 08:08:01 am »
perfect working again.  overwrite zvdatetimepicker.pas

thanks for all

You are welcome.
Anyway, I tested this morning with new snapshot (rev. 24772) and the bugs in svn seem to be fixed since yesterday.

 

TinyPortal © 2005-2018