[win2k/Delphi6]
I've found a really weird keypress "leak" from my test program.
DelphiApp: no borders, alwaysOnTop, hidden at startup, keypress handler
listens for ESC key and exit itself when pressed. S keypress displays a form
FlashExeApp: Macromedia flash application which handles ESC keypress
(close itself or toggle fullscreen mode, etc...)
* I start both application, DelphiApp.exe and FlashApp.exe
* DelphiApp has no borders and form is not visible first
* I activate flashpp and then DelphiApp from windows taskbar buttons
* taskbar indicates delphiapp is focused now
* I click ESC to close delphi app without pressing S to make form visible
* DelphiApp is closed, _but_ very same ESC button is leaking to a
previously activated Flash application !!
This does not seem to happen with all applications. I made second
DelphiApp and used it instead of FlashApp. It did not receive leaked ESC
keypress.
But if I switch from FlashApp to hidden-form-noborder-DelphiApp then
keypress is leaked to previous FlashApp.
Resolution:
I made my DelphiApp to have a single border (very thin window border
with captionbar). Now if I use it then ESC keypress does not leak to
FlashApp instance. Very weird, why is borderless DelphiApp "leaking"
keypresses to Flash applications.
Question:
Is it possible to create a single border window without an upper captionbar?
I would like to have a borderless window but as it does not behave
correctly I may have to accept a single border but captionbar should go
away.