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.
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.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com