Recent

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

pasquale

  • Sr. Member
  • ****
  • Posts: 267
    • 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 »
Apple loves breaking backward compatibility to make money. If you want to be sure that your apps will never stop working, use Windows and trash macOS!

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • 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.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

pasquale

  • Sr. Member
  • ****
  • Posts: 267
    • 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.
Apple loves breaking backward compatibility to make money. If you want to be sure that your apps will never stop working, use Windows and trash macOS!

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • 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.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

pasquale

  • Sr. Member
  • ****
  • Posts: 267
    • Esposito Software
Re: Bug in Calendar control under Mac OS X?
« Reply #4 on: April 25, 2012, 08:26:54 pm »
Thanks.
Apple loves breaking backward compatibility to make money. If you want to be sure that your apps will never stop working, use Windows and trash macOS!

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • 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.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4468
  • 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
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • 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: 1232
    • 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.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

pasquale

  • Sr. Member
  • ****
  • Posts: 267
    • 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 »
Apple loves breaking backward compatibility to make money. If you want to be sure that your apps will never stop working, use Windows and trash macOS!

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • 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.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

pasquale

  • Sr. Member
  • ****
  • Posts: 267
    • 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?
Apple loves breaking backward compatibility to make money. If you want to be sure that your apps will never stop working, use Windows and trash macOS!

JD

  • Hero Member
  • *****
  • Posts: 1848
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 - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

 

TinyPortal © 2005-2018