Bug in Form/PageControl/Frames combination

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #37471
    HeDiBo
    Participant

    My project contains a TsPageControl, with TsTabsheets consisting solely out of frames. The SkinManager is on a separate data module.

    I noticed a problem with TsDateEdit. Clicking the button and then clicking the today button or any of the next or previous year/month buttons does not work: the calendar window just closes.

    I tried to mimic this in a sample project but the calendar appeared to work OK. But then I noticed the next year button to be malformed. And the title bar is not correct either. This is how it looks:

    [attachment=8292:acDateEditBug.jpg]

    Notice the malformed title bar.

    And the missing next year button.

    This is the test project. I don't know if you can reproduce the problem in your environment.

    [attachment=8293:acDateEditBug.zip]

    If you want me to do some further testing, please let me know.

    #56619
    Support
    Keymaster

    Thank you for the demo.

    Can you give me your Exe also? I will check it on my system.

    By the way, Datamodule with SkinManager is created after the form creation in this project.

    I always suggests to create DataModule before all forms.

    #56621
    HeDiBo
    Participant
    'Support' wrote:

    Thank you for the demo.

    Can you give me your Exe also? I will check it on my system.

    By the way, Datamodule with SkinManager is created after the form creation in this project.

    I always suggests to create DataModule before all forms.

    I will try that.

    Here is the exe:

    [attachment=8294:acDateEditBug.zip]

    #56622
    HeDiBo
    Participant

    Making the datamodule first solved the problem of the title bar. Thank you.

    The “next year” button problem remained though.

    #56630
    HeDiBo
    Participant

    My problem with the TsDateEdit not responding to the buttons in the calendar is still unsolved.

    I made a message trace of the bug.

    What I do is start the program, go to the tabsheet containing the DateEdit, click the button, click the Next Month button (which does not do a thing except close the Calendar) and stop the program.

    I traced the messages in sMonthCalendar, sToolEdit, acPopupCalendar and sPopupClndr. This is the result:

    [attachment=8299:alphalog.txt]

    I noticed the log contains no more than two LBUTTON messages, one for button down, followed by one for button up. After that, apparently things go wrong.

    #56641
    Support
    Keymaster

    Thank you for the Exe and Log files.

    I think, it's strange, but calendar buttons works well in your Exe on my PC (except “Next Year” button, this button works too, but glyph is not visible).

    I need more info about your Windows and Delphi versions.

    Also, TsMonthCalendar works well on your side?

    The TsDateEdit placed to the form directly works well?

    #56645
    HeDiBo
    Participant
    'Support' wrote:

    Thank you for the Exe and Log files.

    I think, it's strange, but calendar buttons works well in your Exe on my PC (except “Next Year” button, this button works too, but glyph is not visible).

    I need more info about your Windows and Delphi versions.

    Also, TsMonthCalendar works well on your side?

    The TsDateEdit placed to the form directly works well?

    The icon of the Next Year button is invisible. After changing the order of unit creation (datamodule first) that's the only thing that remains.

    The test project that I sent you is a true mimic of my large project. So, about placement etc. that will answer all your questions.

    However, this test project does not fail!. In my larger project the calendar closes as soon as a button is clicked without acting upon its intended purpose. Therefore I have sent you the message trace, which is from my actual large project.

    I'm working with Windows 10 Pro (64 bit version) and with Delphi XE4.

    #56650
    HeDiBo
    Participant

    Problem solved in AC 12.08 a3.gif

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