How to row column alignment?

Category: C/C++ -> Foundation Classes Author: piaoyang_zhang Date: 2011-03-16 14:01:05
 
piaoyang_zhang
2011-03-16 14:01:05
I would like to calculate the data value is displayed in the RichEdit control, as such:
12 13
2345671.1 43.22
212 443
...
code is this:
RichEdit1-> ; Lines-> Add ("12 \ t13");
RichEdit1-> Lines-> Add ("2345671.1 \ t43.22");
RichEdit1-> Lines-> ; Add ("212 \ t443");
...
but \ t can only be moved in parallel 8 character position. If the output of the extra 8 bits. On a tandem.
how to do? Is there a better way?
guanyuwenyi
2011-03-16 14:19:25
with I / O streams operate it, it is convenient.
s499653499
2011-03-16 14:25:26
can be specific?
zhangzcz1999
2011-03-16 14:41:00
then output 2 "\ t", ^ _ ^
czdodo
2011-03-16 14:43:34
this ok?
RichEdit1-> Lines-> Add ("12 ; 13 ");
RichEdit1-> Lines-> Add (" 2345671.1 43.22 ");
RichEdit1-> Lines-> Add (" 212 ; 443 ");
xbxb4027
2011-03-16 14:50:06
StringGrid or ListView with it, for sure on the neat
cissy0328
2011-03-16 15:09:13
font and font size must pay attention to the election of, or may be missing, you can experiment look.