How to set the Tab size in a TextBox Control

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top