rfedyk
asked on
Extracting highlighted text from TStringGrid Inplace Editor
When you activate the inplace text editor for a string grid you are able to do use the mouse to highlight all or part of the character string. I want to be able to retrieve just the highlighted portion of the inplace editor text string.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Strange, must be becuase I was using a TButton to trigger the code, which of coarse gives the button focus when the code runs. Keep in mind though that although the code executes very quickly there may be a small window in which another application does something with the clipboard to mess things up, but I can't think of a better way, should be fine..
Just.
Just.
ASKER
Many thanks. That works just fine except for the StringGrid1.SetFocus. That actually removes the focus from the inplace editor.
Roger Fedyk