TCarbonTabsControl.SetFocus Error: SetKeyboardFocus
Original Reporter info from Mantis: Shebuka
-
Reporter name: Anton S.
Original Reporter info from Mantis: Shebuka
- Reporter name: Anton S.
Description:
This error may be the cause of my interface problems with VirtualTreeView inside a hided TabSheet.
From forum:
"When a VirtualTreeView inside a hided TabSheet lose/gain focus or control if it has focus (don't really know what exactly) the whole content of TabSheet is repainted on top messing up whole interface.
I have tryed myself on win32 and it doesn't happen, seems like it unhide the mouse pointer automaticaly after tab changes, when on Mac OSX you must move your mouse to unhide it..."
Test project attached.
Steps to reproduce:
Open Utility/Console application (only to see errors that are listed in 'Additional Info.'), then open this simple example I'v made to easy reproduce the bug with few steps:
- Click on Button1
- Click to edit Edit2 text field
- Position your mouse on VirtualTreeView1 and don't move it
- Type something inside Edit2 (before timer)
- After timer brings you back to TabSheet1 move your mouse and you can see the bug in the screen
(sometimes it also happend when simply after pass 1. you move focus away from application and then after timer event move mouse over page control)
but it throw this error messages even without VST, you need only a page control and some tabsheets.
Additional information:
Laz: 0.9.31.31572
FPC: 2.4.4
VTV: 4.8.7.1
I suppose that as VST was last focused control before tabsheet change it check for parent focus that fails and so the whole tab is repainted.
25/07/11 18.20.16 [0x0-0x127127].com.company.TabTest[12449] TCarbonTabsControl.SetFocus Error: SetKeyboardFocus failed with result -30585
25/07/11 18.20.16 [0x0-0x127127].com.company.TabTest[12449] TCarbonTabsControl.SetFocus Error: SetKeyboardFocus failed with result -30585
25/07/11 18.20.16 [0x0-0x127127].com.company.TabTest[12449] TCarbonTabsControl.SetFocus Error: SetKeyboardFocus failed with result -30585
25/07/11 18.20.16 [0x0-0x127127].com.company.TabTest[12449] TCarbonTabsControl.SetFocus Error: SetKeyboardFocus failed with result -30585
25/07/11 18.20.19 [0x0-0x127127].com.company.TabTest[12449] TCarbonWidgetSet.GetProp Error - invalid widget = 33654112!
25/07/11 18.20.19 [0x0-0x127127].com.company.TabTest[12449] TCarbonWidgetSet.GetParent Error - invalid widget = 33654112!
25/07/11 18.20.19 [0x0-0x127127].com.company.TabTest[12449] TCarbonWidgetSet.GetProp Error - invalid widget = 33654112!
25/07/11 18.20.19 [0x0-0x127127].com.company.TabTest[12449] TCarbonWidgetSet.GetParent Error - invalid widget = 33654112!
Also this one on application activation after restoring from sleep (don't know if it's linked to the above errors)
26/07/11 09.24.36 [0x0-0x135135].com.company.TabTest[13227] CarbonWindow_MouseProc Error: GetEventParameter kEventParamWindowMouseLocation failed with result -9870
Mantis conversion info:
- Mantis ID: 19815
- OS: OS X
- OS Build: 10.6
- Build: 31572
- Platform: Mac
- Version: 0.9.30.1 (SVN)