Application crashes, setfocus to invisible window

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #34851
    eledh
    Participant

    Hello,

    I found two (related) critical issues. I tested it on AC Lite 7.54 and 7.50, Win7 + Aero

    Create 2 forms application, put at least 2 buttons on both forms. Button1 on Form1 shows Form2, Button1 on Form2 closes it.

    Use skin Beijing Ext, extended borders enabled, disable FormHide animation (set Active to False).

    1. Then click on Button1, Form2 is opened. Close it by Button1 there and then press Tab key. Exception is thrown, “Cannot focus disabled or invisible window”. Closed window still has the focus.

    2. Related to first one, even FormHide animation is enabled, application does not crash, but first window (Form1) does not get focus back if Form2 is closed. Tab key does not cause application crash, but it is still possible to jump between controls in closed window and perform operations by pressing enter. If extended borders are disabled, then Form1 gives focus back correctly.

    #46937
    Support
    Keymaster

    Hello

    Can you send me an example please? I can't repeat such situation.

    #46938
    eledh
    Participant

    Hello,

    sure, here it is.

    1. Just run Project1.exe Then click on “Show Form2” button. Form2 is shown. Then click on “Close” button in form2. Form2 is closed. Press TAB key and exception “Cannot focus disabled or invisible window” is thrown.

    2. For second related issue, you have to enable FormHide animation on SkinManager. Then repeat steps in point 1. After pressing TAB key, exception is not thrown now, but when you press Enter key immediately then, “message” dialog is popped up – it means that Form2 is still focused and we just performed operation on button2 “Some dialog message” on closed Form2.

    If you disable ExtendedBorders, both two previous issues are gone and it works perfectly.

    #47069
    Support
    Keymaster

    Thank you!

    The problem will be solved in the nearest release I think.

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