Hey,

How would I go about creating an Auto-Indent system for my Text Editor ?

Anyone have example code I can use to scan a string for tabs at the beginning, and then insert that same amout of tabs into the next line !!
Posted on 2002-05-08 13:42:07 by Dracton
It depends on the edit control your using. And how your are getting/processng information.

But in general, get a pencil an paper out and outline important block needed with some detail to get the job done.

Then review the type of editor control your going to apply it to, and determin the amount of access you can get. ie) WM_ massages? or Subclassing? etc.

Then when you got a game plan, code away!

:NaN:
Posted on 2002-05-08 13:45:01 by NaN
Well,

I'm using the Rich Edit control. And would simply like to get the current lines text, scan the beginning for tabs, keep track of the amount of tabs found, then once the scan is finished, insert that same amount of tabs into the next line ...

I was thinking of using the scasb instruction !!
Posted on 2002-05-08 13:50:33 by Dracton