Alinhar a Direita com TPrinter

Delphi

29/10/2003

Alguém sabe como alinhar a direita um campo texto de um edit, usando o tprinter


Muito Obrigado.


Tecrogerio

Tecrogerio

Curtidas 0

Respostas

Tecrogerio

Tecrogerio

29/10/2003

sobe


GOSTEI 0
Marcelo Saviski

Marcelo Saviski

29/10/2003

tenta:

var
  TextWidth: Integer;
begin
  TextWidth := printer.Canvas.TextWidth(´Seu Texto´  );
  Printer.Canvas.textout(Printer.Width - TextWidth, 100, ´Seu Texto´);  
end;



GOSTEI 0
POSTAR