Setting TabStops in a TMemo

How you can set TabStops in a TMemo component using the TMemo's Perform method.

The magic number is the 160 below... Changing this number will change the tabstops bigger or smaller.

int TabStop = 160 / LOWORD(GetDialogBaseUnits());
Memo1->Perform(EM_SETTABSTOPS, 1, (LPARAM)&TabStop);

 

Share this article!

Follow us!

Find more helpful articles: