Re: VCL: How to know the width of a text to be drawn

2013-01-31 Thread Caolán McNamara
On Thu, 2013-01-31 at 09:38 -0200, Rodolfo wrote: > I'm drawing a comment control and I need to know two things: > > 1. The text width (to move text to right side in RTL systems) > 2. The text line base (to align it to an horizontal arrow I draw) > > By now, I only know how to draw a text with Ou

VCL: How to know the width of a text to be drawn

2013-01-31 Thread Rodolfo
I'm drawing a comment control and I need to know two things: 1. The text width (to move text to right side in RTL systems) 2. The text line base (to align it to an horizontal arrow I draw) By now, I only know how to draw a text with OutputDevice::DrawText(), so I can't make my hack properly. Tha