After opening and dismissing a modal dialog, the TStatusBar stops displaying the text updates. Clicking on the desktop, and then back on the form, fixes it.it sounds like the modal dialog is being closed by the mouse click.
After opening and dismissing a modal dialog, the TStatusBar stops displaying the text updates. Clicking on the desktop, and then back on the form, fixes it.it sounds like the modal dialog is being closed by the mouse click.
(meaning that the mouse remains "locked up" by a control on the closed dialog)
The remedy is just to make another click (mouse-up releases the lock).
Here's what you can do - try to close the modal window by other means than the mouse (keyboard, obviously)
and check if you're getting mouseMove events or not.
statusbar getting focus is a very exotic approach.
i'd think you're not looking for the status bar to get focus.
instead you're getting mouse position globally and updating the status bar