Czy jest inny sposob na zrobienie tego (moze TextRect i jakis WordWarp ? ;) )
oto kod:
function TForm1.Make: boolean;
begin
setLength(buff,Memo1.lines.Count);
for I := 0 to Memo1.lines.Count-1 do
begin
buff[I] := Memo1.Lines.Strings[I];
end;
result := True;
end;
procedure TForm1.DXTimer1Timer(Sender: TObject; LagCount: Integer);
begin
if Make = false then Make;
for I := 0 to High(buff)do
begin
DxDraw1.Surface.Canvas.TextOut(100,I*20,Buff[I]);
DxDraw1.Surface.Canvas.Release;
end;
end;
buff to oczywiscie tablica strongow, ale chodzi mi o to, aby wyswietlilo kilka lini tekstu
pod soba, bez uzywania petli.
najprosciej by bylo tak: TextOut(100,100,'aaaaaa'#13#10'aaaaa'); D:D --Source of life - Programming,
Skateboarding,
Metal.