Fórum Justificar Paragrafo no RichEdit?? #166262
25/06/2003
0
Alguem tem alguma função para fazer uma Justificação
de paragrafo em um RichEdit??? por favor!!!!!!!
Até hoje nunca encotrei alguma função que faça uma justificação.
No Site da activedelphi.hpg.com.br
tem um componente. mas testei e não serviu!
http://www.activedelphi.hpg.com.br/componentes/JustifyRichEdit.zip
Please!!!!
Chaplinux
Curtir tópico
+ 0Posts
25/06/2003
Oberdan
var
mPos,mPont,mTam,mNr,mCont:integer;
mStr:string;
begin
mTam:=Length(mCad);
if mTam>=mMax then
Result:=copy(mCad,1,mMax)
else
mStr:=´´;
mCont:=0;
mPont:=1;
mNr:=mMax-mTam;
while mCont<mNr do
begin
mPos:=pos(mStr,copy(mCad,mPont,100));
if mPos=0 then
begin
mStr:=mStr+´ ´;
mPont:=1;
continue;
end
else
begin
mCont:=mCont+1;
Insert(´ ´,mCad,mPos+mPont);
mPont:=mPont+mPos+length(mStr);
end;
Result:=mCad;
end;
end;
EX.:
Memo1.lines[i]:=justifica(memo1.lines[i],60 {Nº de caracteres possiveis da linha});
Gostei + 0
26/06/2003
Weber
Vê se é isso que voce quer, se for é só entrar em contato.
Gostei + 0
26/06/2003
Weber
Vê se é isso que voce quer, se for é só entrar em contato.
Gostei + 0
26/06/2003
Weber
Vê se é isso que voce quer, se for é só entrar em contato.
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)