Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Calendar format yyy-MM-dd
Thu, Aug 29 2024 6:22 AMPermanent Link

Artur2024

Avatar

Hello
In my project I change the date format:

FormatSettings.DateSeparator := '-';
FormatSettings.ShortDateFormat := 'yyyy-MM-dd';

The calendar works fine, but when I open it from the dialog window there is an error.

I have attached a simple example.

Can someone help me?



Attachments: TestCalendarFormat.zip
Fri, Aug 30 2024 10:16 PMPermanent Link

erickengelke

Avatar

Artur2024 wrote:

>In my project I change the date format:

FormatSettings.DateSeparator := '-';
FormatSettings.ShortDateFormat := 'yyyy-MM-dd';

> The calendar works fine, but when I open it from the dialog window there is an error.

I haven't tried your project, but my suggestion is to always put that code into the OnShow or OnCreate handler from the main form of your application and being consistent across the whole application.

Erick
EWB Programming Books and Nice Component Library
See my EWB BLOG posts, at:
http://www.erickengelke.com
Fri, Sep 6 2024 9:15 AMPermanent Link

Artur2024

Avatar

So I placed the code in OnSchow and in OnCreate, one did not help.

I managed to solve the problem when I removed the default value of the Text property at the design stage.
Fri, Sep 6 2024 9:16 AMPermanent Link

Artur2024

Avatar

...Thank you for your help
Image