Home RAP
New Blog Posts: Merging Reports - Part 1 and Part 2

Get new with of DBText after AutoSize

edited December 2009 in RAP
How do you get the NEW width of a DBText after it has autosized. I need to
set the LEFT of the DBText next to it, based on the width after an
autosize.

Cheers

Dan

Comments

  • edited December 2009
    Hi Dan,

    From RAP, you would need to create a pass-thru function to manually
    calculate the width of the text based on the content and font. (using the
    TCanvas.TextWidth routine).

    Another option is to place both text objects inside a memo or variable to
    bypass the need to manually assign the left property.

    MyVariable.Value := MyPipeline['Field1'] + ' ' + MyPipeline['Field2'];

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.