How to make an INDENTATION module.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mobby
    New Member
    • Feb 2011
    • 2

    How to make an INDENTATION module.

    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
  • Jason Mortmer
    New Member
    • Feb 2011
    • 23

    #2
    what on earth do you mean by 'indentation module'?

    Comment

    • mobby
      New Member
      • Feb 2011
      • 2

      #3
      i mean i have broken my word processor project to modules, indentation will be a feature of this project once i finish it and integrate it with the rest of the project:p

      Comment

      • Jason Mortmer
        New Member
        • Feb 2011
        • 23

        #4
        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

        Working...