Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capturing carriage returns in a stringgrid

Status
Not open for further replies.

jrdoner

Programmer
Jul 17, 2003
4
I am using a string grid to permit entry of a list of words by a user. I capture the keystrokes to the string grid with its OnKeyUp method, so that when I get a carriage return, my program can examine the user-entered word for correctness.

But, it always takes two presses of the carriage return, which I suppose indicates that some lower level of editing software for stringgrid captures the first carriage return. Is there any way to fix this so that the OnKeyUp method can capture the first carriage return?

Thanks in advance for any insights into this problem.

jrdoner
 
Why are you using 'OnKeyUp' rather than 'OnKeyDown'
However Editing directly in a string grid involves the in place editor, its important that this is set up correctly.


Steve [The sane]: Delphi a feersum engin indeed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top