TEXT
Type in an Edit Field whose window is not active
It turns out that the edit field that's currently active is always in the current _output_ window, which is not necessarily the same as the current _active_ window. When you activate a window, it becomes both the "active" and the "output" window. But then you can cause a different window to be the output window, using the WINDOW OUTPUT statement. The active window doesn't change when you do that. So one thing you can try is this:
WINDOW mouseOverWnd 'Makes this "active" and "output"
WINDOW OUTPUT _editFldWnd 'Makes this the "output" window
The only problem is that you may wish to have the "mouseOverWnd" be the output window for other reasons I don't know about. If that's the case, then I can't immediately think of a simple solution.
it sounds like you have just one edit field in the whole interface.
if that is indeed the case,
have a keypress in any window do this:
1) switch output to the window that contains the edit field,
2) insert the keypress, and
3) switch output back to the window where it was.
|