How to set the Tab size in a TextBox Control

  • Thread starter Thread starter JB
  • Start date Start date
J

JB

Hi All,
I have a multiline text box in which I'd like the Tab char to be 4
chars long rather than the standard 8.
I've seen a few postings suggesting the use of the EM_SETTABSTOPS
message but that's not exactly what I want to do (unless I don't quite
understand and I'm happy for someone to explain).
I don't know in advance how many tabs there will be on a line, I just
want that each time the user hits the tab key, it moves the caret 4
spaces right rather than 8.
Thanks for your help.
JB
 
Back
Top