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!

command-like RichEdit

Status
Not open for further replies.

cyprus106

Programmer
Apr 30, 2001
654
I have a program that somewhat resembles command (DOS). You type a command on the last line of a RichEdit, after the command prompt and it does it's thing.
The problem is that it's a RichEdit. Either the entire box is or is not read only. The user can go back and edit lines above the command prompt. I need only the last line of the RichEdit to be non-ReadOnly. I don't know how to do it, I'm hoping somebody else has some bright ideas on how to or has code or something.

Cyprus
[noevil]
 
You would need to check the number of lines in the rich edit and check on a keydown/up/press if they're in the last line, and if not suppress the keypress. (Don't ask me how to do this!)
Or you could just position a text box at the bottom of the richedit.
Or why don't you just make it a console app? [pc3]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top