CPromptEdit
Environment:
The following project implements a derived box from CEdit featuring a prompt command.
The code guarantees to work well depending on the options that developer chooses when drawing the dialog box: they should be preserved as those included in the following project (MULTILINE, AUTOVSCROLL ...).
I do not put any code here, because it would be unuseful and much boring. In fact the code of CPromptBox is very simple and it should be understood easily at running time, since the matter is just to rule the caret movement at each row, or just taking the string of every row.
Anyway, some attention should be payed to how to connect the prompt of a working class (for example: a parser). I have implemented a simple method in this project, where CPromptEdit communicates with a report box on the right.
Look at the image below:
Anyway a lot of other methods can be come out, according to your needs or fantasy, so ...
... comments and suggestions are very well appreciated both in this site
and directly to me at : my e-mail
Downloads
VC++ 5.0 project - 22 KbThe class code - 4 Kb

Comments
Links to "click here for larger image" fixed
Posted by Brad Jones on 08/02/2004 08:46amThe links to the larger images have now been fixed.
ReplySmall fix for using of Home key (VK_HOME)
Posted by Legacy on 12/18/2002 12:00amOriginally posted by: Fran�ois Le Luhern
ReplyExEditors Library
Posted by Legacy on 03/19/2002 12:00amOriginally posted by: Mike Philips
ReplyAuthor: constant updating in my site
Posted by Legacy on 03/06/2002 12:00amOriginally posted by: Alessandro Rosa
Thank you to everyone writing his suggestions to me.
CPromptEdit has been always updating in my web site
http://www.malilla.supereva.it/Pages/Prog/Prompt/promptedit.html
Alessandro Rosa
ReplyFix for using in a Dialog
Posted by Legacy on 03/05/2002 12:00amOriginally posted by: Bill Klavoon
ReplyFixed memory leaks & do not add strings twice to history
Posted by Legacy on 02/27/2002 12:00amOriginally posted by: Andreas Kuhtz
ReplyDelete key issues
Posted by Legacy on 02/27/2002 12:00amOriginally posted by: Chris Wise
It seems I am able to hit the delete key and destroy the prompt or any other text I've outputted back to the CPromptEdit control. I am in the processing of writing a snippet to prevent this.
Reply