IntlDateTimeLabel in Hijri Problem

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

IntlDateTimeLabel in Hijri Problem

Postby pc2058 » March 7th, 2013, 10:48 am

Hi Kambiz
Thank you for your i18n Package.
I'm trying to use your components in my app.

I found the following problems/issues or bugs I'm not sure.

first :

I dropped a component IntlDateTimeLabel on form.
set the component's dateTime property to Gregorian date 07/03/2013.
I set the CalendarType to 'Hijri Calendar' in design time the label shows correctly the date in Hijri.
When i run the form, the label shows Gregorian date '07/03/2013' !!.
could you please check this problem.

second problem in DBIntlDatePicker when it is in Grid, it will not repaint it self. all cells will show the same date.

I have one more question:
I try to convert Hijri To Gregorian Date and vice versa,unfortunately , I read your help files but there are no examples to lean from.
I hope you can show me an example on how to convert between calendars.
Thanks again for your wonderful work.
A/Salam Mohammed.
pc2058
Member
Member
 
Posts: 2
Joined: March 5th, 2013, 6:57 pm

Re: IntlDateTimeLabel in Hijri Problem

Postby Kambiz » March 9th, 2013, 5:19 pm

Hi Mohammad,

I'm sorry but I have only Delphi 7, which is not the right version for the i18n package. In other hand, I've already installed the trial version of Delphi 2009 and later and they are all expired. So, simply there is no way for me to check the issue out.

I guess if you set CultureCalendar property of IntelDateTimeLabel to lsNever, at runtime you get the same output as design-time.

For the date picker problem in a grid I have no comment.

To convert a date from a calendar system to Gregorian, use EncodeDate method of the appropriate calendar class.
To convert a Gregorian date to another calendar system, use DecodeDate method of the appropriate calendar class.

I hope this information helps you.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Re: IntlDateTimeLabel in Hijri Problem

Postby pc2058 » March 11th, 2013, 4:14 pm

Thank you for your kind replay.

I already set the CultureCalendar property to lsNever, with no luck.
I hope you will have sometime in future and check this problem.

for date conversion I will try to use mentioned technique.
Thanks;.
pc2058
Member
Member
 
Posts: 2
Joined: March 5th, 2013, 6:57 pm

Re: IntlDateTimeLabel in Hijri Problem

Postby Kambiz » April 26th, 2013, 9:18 pm

Hi Mohammad,

Finally I found the opportunity to fix the issue with IntlDateTimeLabel control.
I had missed to write code for saving values of Culture and CalendarType properties into DFM.

You may want to download the update from the i18n package's page.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 2 guests