Recent

Author Topic: Bug in Calendar control under Mac OS X?  (Read 8504 times)

pasquale

  • Full Member
  • ***
  • Posts: 183
    • Esposito Software
Bug in Calendar control under Mac OS X?
« on: April 21, 2012, 05:16:25 pm »
Hello everybody.

When I select the last day of the month from the Calendar control, I get the first day instead of the last.

Is it a bug or am I missing something?

This is the code I use to get the date selected:

Code: [Select]
txtDate.Text := FormatDateTime('dd/mm/yyyy',MonthCalendar.DateTime);

In the code above, txtDate is an EditBox while MonthCalendar is the Calendar control.

Please notice that the problem only occurs when you select the last day of each month. Any other date is returned correctly.

Any help will be appreciated.

« Last Edit: April 22, 2012, 08:36:51 am by pasquale »
I'm beginning to love the Mac and hate Apple's money-hungry policy.

jwdietrich

  • Hero Member
  • *****
  • Posts: 1032
    • formatio reticularis
Re: Bug in Calendar control under Mac OS X?
« Reply #1 on: April 25, 2012, 07:10:18 pm »
You are right, I can reproduce the problem here (Lazarus 0.9.30.4, Mac OS X 10.5, PPC G5). I would recommend to submit a bug report at bugs.freepascal.org.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.0.2 | FPC 3.0.4 | PPC, Intel, ARM | macOS, Windows, Linux

pasquale

  • Full Member
  • ***
  • Posts: 183
    • Esposito Software
Re: Bug in Calendar control under Mac OS X?
« Reply #2 on: April 25, 2012, 07:34:00 pm »
You are right, I can reproduce the problem here (Lazarus 0.9.30.4, Mac OS X 10.5, PPC G5). I would recommend to submit a bug report at bugs.freepascal.org.

Thanks for your confirmation. I don't have much practice using the procedure to submit the bug. If you think it's important, you may want to take care of it yourself.
I'm beginning to love the Mac and hate Apple's money-hungry policy.

jwdietrich

  • Hero Member
  • *****
  • Posts: 1032
    • formatio reticularis
Re: Bug in Calendar control under Mac OS X?
« Reply #3 on: April 25, 2012, 07:54:47 pm »
OK, I reported the bug. See http://bugs.freepascal.org/view.php?id=21859 for details and current status updates.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.0.2 | FPC 3.0.4 | PPC, Intel, ARM | macOS, Windows, Linux

pasquale

  • Full Member
  • ***
  • Posts: 183
    • Esposito Software
Re: Bug in Calendar control under Mac OS X?
« Reply #4 on: April 25, 2012, 08:26:54 pm »
Thanks.
I'm beginning to love the Mac and hate Apple's money-hungry policy.

jwdietrich

  • Hero Member
  • *****
  • Posts: 1032
    • formatio reticularis
Re: Bug in Calendar control under Mac OS X?
« Reply #5 on: September 09, 2012, 05:11:00 pm »
This issue has been fixed in Lazarus 1.0.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.0.2 | FPC 3.0.4 | PPC, Intel, ARM | macOS, Windows, Linux

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3633
  • I like bugs.
Re: Bug in Calendar control under Mac OS X?
« Reply #6 on: September 09, 2012, 05:40:32 pm »
Hey guys, Lazarus 1.0 is out. It is better than 0.9.30 in many ways. You should use it.

Juha

Bart

  • Hero Member
  • *****
  • Posts: 3518
    • Bart en Mariska's Webstek
Re: Bug in Calendar control under Mac OS X?
« Reply #7 on: September 09, 2012, 11:40:24 pm »
This issue has been fixed in Lazarus 1.0.

Please close the bugreport, since it has been solved in 1.0.
I already marked it as resolved.

Bart

jwdietrich

  • Hero Member
  • *****
  • Posts: 1032
    • formatio reticularis
Re: Bug in Calendar control under Mac OS X?
« Reply #8 on: September 09, 2012, 11:55:07 pm »
Closed...
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.0.2 | FPC 3.0.4 | PPC, Intel, ARM | macOS, Windows, Linux

pasquale

  • Full Member
  • ***
  • Posts: 183
    • Esposito Software
Re: Bug in Calendar control under Mac OS X?
« Reply #9 on: September 19, 2012, 03:14:44 pm »
Closed...

Thanks. This is a good reason to upgrade to version 1.0. I don't know how to uninstall the previous version, though.

Do you know if there is a step-by-step tutorial showing how to uninstall Lazarus 0.9 under Mac?
« Last Edit: September 19, 2012, 09:02:26 pm by pasquale »
I'm beginning to love the Mac and hate Apple's money-hungry policy.

jwdietrich

  • Hero Member
  • *****
  • Posts: 1032
    • formatio reticularis
Re: Bug in Calendar control under Mac OS X?
« Reply #10 on: September 20, 2012, 08:34:22 am »
You don't need an unistaller as long as you haven't installed a GM edition of the same version. Upgrading from 0.9 to 1.0 should be easily done by simply installing Lazarus 1.0 (and, if required FPC 2.6.0 and the corresponding FPC SRC archive. FPC 2.4 will definitively not work with Lazarus 1.0.). Outdated files are automatically overwritten by the installer.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.0.2 | FPC 3.0.4 | PPC, Intel, ARM | macOS, Windows, Linux

pasquale

  • Full Member
  • ***
  • Posts: 183
    • Esposito Software
Re: Bug in Calendar control under Mac OS X?
« Reply #11 on: September 21, 2012, 03:31:27 pm »
You don't need an unistaller as long as you haven't installed a GM edition of the same version. Upgrading from 0.9 to 1.0 should be easily done by simply installing Lazarus 1.0 (and, if required FPC 2.6.0 and the corresponding FPC SRC archive. FPC 2.4 will definitively not work with Lazarus 1.0.). Outdated files are automatically overwritten by the installer.

What happens if you have installed some add-ons such as Power PDF or LazReport? Will they have to be installed again?
I'm beginning to love the Mac and hate Apple's money-hungry policy.

JD

  • Hero Member
  • *****
  • Posts: 1758
Re: Bug in Calendar control under Mac OS X?
« Reply #12 on: September 21, 2012, 06:38:48 pm »
You don't need an unistaller as long as you haven't installed a GM edition of the same version. Upgrading from 0.9 to 1.0 should be easily done by simply installing Lazarus 1.0 (and, if required FPC 2.6.0 and the corresponding FPC SRC archive. FPC 2.4 will definitively not work with Lazarus 1.0.). Outdated files are automatically overwritten by the installer.

What happens if you have installed some add-ons such as Power PDF or LazReport? Will they have to be installed again?

Yes unfortunately. Hopefully all you'll need to do is go to the Tools menu and select 'Build Lazarus with Normal: IDE'. If that dosen't do it, you'll have to install the additional components one at a time. But the effort is well worth it because Lazarus 1.0 IS the great leap forward:D
« Last Edit: September 21, 2012, 07:05:50 pm by JD »
Windows (10, 7) - Lazarus 2.0RC3/FPC 3.2, NewPascal, Delphi

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