LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Wish to insert a tab into a textbox

I want to send a tab instruction to a text box to have the same effect as a "\t" does as a formatting character. When I send "\t" to a text box the text box displays a rectangle character instead of tabbing the line. Example: ResetTextBox ResetTextBox (HelpPanel, HELP_PANEL_TEXTBOX, "\t text to be tabbed");
0 Kudos
Message 1 of 3
(3,786 Views)
Hi glen,
I had the same problem than you once, and there is no solution; not with a textbox at least.
The textbox does not accept the formatting character;
it does not accept escape sequence either ("\033p50l").
The only work around I found was to use a listbox, being carreful that my text could be displayed on a single line every time...
To make the "\t" statement, do:
sprintf (tmpStr, "\033p(number of pixel you want)l%s", cString);
InsertListItem(..., tmpStr);
Hope this help, flo.
Message 2 of 3
(3,786 Views)
Thanks for you comment. Its seems kind of funny that the \n can be used but not \t. Hummm.

Glen...
0 Kudos
Message 3 of 3
(3,786 Views)