D4: TAB KEY doesn't work in VCL TForm in ActiveX DLL
I created an ActiveX DLL that contains a simple
TForm with a few edit controls on it. The form
is wrapped in a simple Automation object with
only one method (create and show the form).
When the ActiveX DLL is loaded into an MFC-based
application and the form is displayed, the TAB key
does not work.
For example, with one of the edit boxes focused,
pressing tab should advance focus to the next edit
control, but instead, the system just beeps. The
arrow keys work inside the edit controls, and the
problem appears to affect only the TAB key.
The same form works correctly when it is run in
a standalone .EXE, or when the ActiveX dll is
hosted by a Delphi-based client.
Any ideas?