Hi, I am working on a simple word processor. just practising. I can not figure out how to add Indentation feature to this word processor using VC++ and Winform. kindly help plz
How to make an INDENTATION module.
Collapse
X
-
-
-
Right, I would call them classes instead of modules. Module is an old VB term.
And this all depends on where you want the indentation to appear. Then searching for this instance and placing a '\t' character after it. If you wanted to indent the line after the user has entered a '{' for example, you would need to send the string of text to this class, the class will detect if the user has entered a '{' followed by a new line, then insert a tab at that position. The text is then copied back to the page where the user is typing.Comment
Comment