TsMonthCalendar no respect LOCALE_IFIRSTWEEKOFYEAR

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #34460
    BuzzLeclaire
    Participant

    Hello,

    I use TsMonthCalendar.

    In the Main form :

    Code:
    procedure TFPrincipal.FormCreate(Sender: TObject);
    begin
    SetLocaleInfo(LOCALE_SYSTEM_DEFAULT,LOCALE_IFIRSTWEEKOFYEAR,'2');

    here is the visual result

    TmonthCalendar.png

    Why ?

    For information :

    0 Week containing 1/1 is the first week of that year. Note that this can be a single day, if 1/1 falls on the last day of the week.

    1 First full week following 1/1 is the first week of that year.

    2 First week containing at least four days is the first week of that year.

    #45318
    BuzzLeclaire
    Participant

    Other problems

    if parameters ShowTodayBtn is True, the display is in English.

    the display is in English while i am in French language.

    It displays “today” instead of 'Aujourd'hui'

    There is no setting in the file sStrings.RES

    Thx

    #45325
    Support
    Keymaster

    Hello

    The problem with week number will be solved soon, I think.

    sMonthCalendar unit contains s_Today:String variable, you can change this string manually.

    #46380
    BuzzLeclaire
    Participant

    Hello,

    this problem still exists.

    Do you have a solution ?

    Thx

    #46432
    Support
    Keymaster

    Hello

    Some changes will be added in the next release and this issue will be solved I think.

    #47118
    BuzzLeclaire
    Participant
    'Support' wrote:

    Hello

    Some changes will be added in the next release and this issue will be solved I think.

    Hello,

    You have actually solved the problem of week number offset.

    But you have not solved the problem as a whole.

    Indeed, at the end of the year 2012 this works, but with the passage in January, the week of December numbers are éronées.

    Thank you

    #47119
    Support
    Keymaster
    'BuzzLeclaire' wrote:
    with the passage in January, the week of December numbers are éronées.

    I'm sorry, what you mean? Can you show a screenshot of TsMonthCalendar and of other (correct) calendar?

    #47147
    BuzzLeclaire
    Participant
    'Support' wrote:

    I'm sorry, what you mean? Can you show a screenshot of TsMonthCalendar and of other (correct) calendar?

    Hello,

    ErreursCalendar.png

    the 1 days of week 48 not existe

    the week 48 is not correct normaly it's 52

    Thx.

    #47166
    Support
    Keymaster

    Thank you!

    Try the latest version please.

    #47171
    BuzzLeclaire
    Participant

    Hello,

    It's ok with latest version.

    Thx

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.