TCustomEdit OnEnter and OnExit are not always called properly
Original Reporter info from Mantis: JuhaManninen @JuhaManninen
-
Reporter name: Juha Manninen
Original Reporter info from Mantis: JuhaManninen @JuhaManninen
- Reporter name: Juha Manninen
Description:
I added DebugLns at r37350 for TCustomControlFilterEdit OnEnter and OnExit event handlers.
It is a known problem that the FilterEdit components sometimes keep the "(filter)" text when getting focus although the text should be cleared. See the related issue #21689 (closed).
This happens on many widgetsets, at least GTK2 and QT.
The problem became even more visible with a new FilterEdit in Object Inspector.
Now for the first time I can reproduce it systematically!
It looks like OnExit call is first skipped when focus moves from FilterEdit directly to another form, for example to Designer in this case. After that also OnEnter is skipped when entering the FilterEdit next time.
If the focus stays inside one form, Object Inspector in this case, everything works fine.
For example moving between FilterEdit and component TreeView is OK.
Additional information:
To reproduce:
- open a form with many controls in Designer.
- make cmd line visible so you can follow output from DebugLn.
- change focus between components FilterEdit in Object Inspector and different controls in Designer, by clicking them.
You will see how FilterEdit still has "(filter)" after getting focus, and how there are events missing before that.
Mantis conversion info:
- Mantis ID: 22079
- Version: 1.1 (SVN)