http://bugs.winehq.org/show_bug.cgi?id=27190
--- Comment #4 from Jarek jarekczek@poczta.onet.pl 2011-07-03 14:09:27 CDT --- I forgot to add that I don't know wine. I am a developer but having insufficient wine knowledge I probably said a few stupid things.
Nevertheless I made another discovery. When the app is in a bogus state (active child window, inactive main window), the actual active window is the main window. I figured it adding another debug output showing the active window. So the main window (Form1) is actually active (from windows/wine point of view), but looks like it is inactive. I gather that it is inactive in linux (window manager) point of view.