Or do you have information can achieve the effect of controls, thank you,
CodePudding user response:
Didn't do this, replace with special characters in line do not?Is to make electronic medical records?
CodePudding user response:
Procedure TForm1. Btn3Click (Sender: TObject);
Var
I: integer;
The begin
Mmo1. The Clear;
Mmo1. Lines. The Add (' 01);
Mmo1. Lines. The Add (' 02 ');
Mmo1. Lines. The Add (' 3 ');
I:=0;
While iThe begin
If the copy (mmo1. Text, I, 1)=# 13 then
The begin
Mmo1. Text:=copy (mmo1. Text, 1, I - 1) + '┘' + copy (mmo1. The Text, I, length (mmo1. Text));
I:=I + length (' ┘);
end;
I:=I + 1;
end;
end;
CodePudding user response:
Thanks for seleron code, if it is used to display a arrow character, then let the cursor will not be moved to behind the character, what events to handle?CodePudding user response: