Recent

Author Topic: [PowerPdf] help me TextRect?  (Read 5258 times)

laguna

  • Sr. Member
  • ****
  • Posts: 329
[PowerPdf] help me TextRect?
« on: February 21, 2011, 09:11:11 am »
I can not use this feature TextRect, you can pass me an example.
Adding to this example

in this twe sampler
The text reaches the edge, but does not continue on the next line
Code: [Select]
      ARect1.Top:=250;
      ARect1.Bottom:=100;
      ARect1.left:=50;
      ARect1.Right:=200;
      MultilineTextRect(ARect1,'Test, test, test, test, test, test, test',True);

      ARect2.Top:=250;
      ARect2.Bottom:=100;
      ARect2.left:=210;
      ARect2.Right:=300;
      TextRect(ARect2,'Test, test, test, test, test, test, test',paLeftJustify,true);



Thanks
« Last Edit: February 21, 2011, 10:08:25 am by laguna »

laguna

  • Sr. Member
  • ****
  • Posts: 329
Re: [PowerPdf] help me TextRect?
« Reply #1 on: February 22, 2011, 10:18:01 am »
I have implemented this feature:
Code: [Select]

procedure PrintML(ARect:TPdfRect;S:String) ;
begin
    with FDoc.Canvas do  begin
        SetFont('Arial', 12);
        SetLeading(10);
        MultilineTextRect(ARect,  S, True);
    end;
end;   
I continue the discussion in the general

 

TinyPortal © 2005-2018