Many thanks for that. It sounds exactly what
my problem is. I had an inkling something like that maybe required
after finding something vaguely similar on another forum, but it was
dealing with Delphi DLL's. It said to call Application.HandleMessage
for the DLL from within the main EXE's Application.OnIdle.
Carl on this list gave me the code to
do selective message queue processing a couple of weeks ago, for a
different problem, which I didn't need to use in the end, but perhaps it will
come in handy.
Just to fill you in a bit, the DLL's are 3rd
party Winamp compatible DSP plugins. Not written by Nullsoft (the
makers of Winamp). All functions and structures are publically published
and standard for all the DSP DLL's. I'm loading them in my player for
processing audio. The processing works fine, but not the tab key on
non-modal forms. Some DSP's use modal configuration forms and the tab key
works fine for those.
After a couple of hours of trying various
methods to process messages, it's not working. There must be something
fundamental that Winamp is doing that I need to do but don't know
what.
There is no easy way to get the window handle of
the form! I had to do a FindWindow to find it based on the visible window
title, which I have done for one DLL. But Winamp doesn't know the name of the DLL form, so
it can't be doing a findwindow, so I'm not sure I'm on the right
track.
But if Winamp is doing it then it must be
possible!
I get some messages processing for this window if I
stop Windows doing it automatically, so it has found the correct window, but
Windows appears to be processing all the messages that are in the queue
anyway.
The fact that the Windows default beep occurs when
pressing the key would suggest that no message is going anywhere, doesn't
it?
I've used PeekMessage along
with IsDialogMessage which I think is correct. I've also tried
TranslateMessage/DispatchMessage with no luck.
I don't suppose anyone else has any further ideas before I give my blind
users the bad news.
Thanks,
Ross.
|
_______________________________________________ Delphi mailing list Delphi@ns3.123.co.nz http://ns3.123.co.nz/mailman/listinfo/delphi