A arm Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-07 #2 自己写程序用空格补位对齐 左对齐在后面补空格 右对齐在前面补空格
L lsyx Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-07 #3 在TRichEdit.Paragraph(TParaAttributes类)中 property LeftIndent: Longint; //左对齐 property RightIndent: Longint; //右对齐
在TRichEdit.Paragraph(TParaAttributes类)中 property LeftIndent: Longint; //左对齐 property RightIndent: Longint; //右对齐
B Big_Z Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-07 #4 ShowMessage(Format('''%10s++++%-20s''', ['ABC', 'EFG'])) More Info, See Help!
B beta Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-07 #5 看来还是得自己判断. 左对齐就不用说了,右对齐嘛... 先假设每一行的最大长度为n 然后,在输出每一行的时候: for i:= 1 to (n-本行长度)do 输出一个空格;