Unable to remove focus via TForm.ActiveControl := nil
Original Reporter info from Mantis: dezlov
-
Reporter name: Denis Kozlov
Original Reporter info from Mantis: dezlov
- Reporter name: Denis Kozlov
Description:
It is sometimes necessary to complete remove focus from controls (without any controls having active focus).
In Delphi world, this is achieved by: TForm.ActiveControl := nil;
In Lazarus world, executing the same line of code removes the focus from the current control but then seems to activate/refocus on default (of the first tab order) control.
Can Delphi behaviour be implemented? Or, is there any workaround to achieve the same effect?
Mantis conversion info:
- Mantis ID: 25396
- OS: Windows
- OS Build: 7
- Version: 1.0.12
- Monitored by: » dezlov (Denis Kozlov)