SetFocus fails, if form is docked (regression)
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
Open the attached example.
It has 3 forms (2 visible at start-up)
There is a button, to open the 3rd form. The 3rd form closes itself if deactivated (if either form1 or form2 is clicked by the user)
If you close form3, by clicking form1, then form1 get's the focus (you can see the buttons focused, you can navigate the buttuns by using the cursor-left/right keys)
If the checkbox on form3 is checked, then the focus will be set to Form2.Edit1.
- open form3 with the button on form1
- click form1
=> focus goes to form1.button1 (correct)
- open form3 with the button on form1
- check the checkbox on form3
- click form1
=> focus goes to form2.edit1 (correct)
Now dock Form2 into Form1:
- open form3 with the button on form1
- click form1 (uncheck checkbox before)
=> focus goes to form1.button1 (correct)
- open form3 with the button on form1
- check the checkbox on form3
- click form1
=> focus goes to form1.button1 (BUG)
focus should go to form2.edit1 (in fact it goes for a tiny moment (you may see it flicker). But is then later moved to form1.button1)
Additional information:
- Observed on windows vista (native)
- With QT on windows dragging is not possible(different bug #17557),
but with QT focus is not set to the edit, not even if the forms are not docked
- Not present on Windows Vista with GTK2 widgetset
- Not present on linux/gtk2
- Not tested on linux/qt or carbon
Mantis conversion info:
- Mantis ID: 17558
- Version: 0.9.29 (SVN)
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 27713 (#9f513e68)
- Target version: 0.9.30