I've got a form with a TEdit into which I occasionally want to enter text, and a frame into which monitoring information is being written asynchronously by a background thread via Synchronize() or QueueAsyncCall().
When monitoring information is written, the focus moves away from the TEdit. I can transfer it back using the form's ActiveControl property, but at that point the cursor is placed at the left of the text being entered and I presume that other state is destroyed.
Is there any way of saving the edit state? I've tried saving and restoring CaretPos without success.
MarkMLl