Setfocus back to previously disabled Edit
Posted on 1998-10-06
On my form I have one TEdit which always has the focus with the flashing cursor inside it which clearly shows the user where the focus is. At some point this edit is disabled for a few seconds than re-enabled. After re-enabling, the cursor no longer flashes inside the edit, even if I do a edit1.setfocus. If there was text selected prior to the disabling, the text no longer shows as selected (although it is still in fact selected) when re-enabling. Any suggestions on how to fix that. I know tabbing to another field than back soves it but that I would prefer not to do that.