I've got a Memo box and what I'm trying to do is have users be able to highlight some text within the memo, press CTRL+SHIFT+S, and then do something with the highlighted text. I've got two quick questions related to this. First, how does one capture the CTRL-SHIFT-S keystroke combination in something like a KeyDown or KeyUp event?
For now I've simply been using the Escape key as a substitute. So, if ESC is pressed then a begin/end block that works with Memo.SelText executes. After the block executes (and the event handler ends), the Memo is cleared ... any text that was previously in it, whether highlighted or not, goes away. Although I'm not including the method, I can step through the code and see that the memo's text is *not* cleared because of any sub-routines that I've added. Do you know why the memo is cleared? And, more importantly, the alternate line(s) I should write to simply work with the selected text and then return the focus back to the otherwise untouched Memo? As always, thanks in advance -- Al _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

