Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-06

Rotated Text for Label or Panel

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrew Brunner

Is there a component that offers rotated text drawn on component like TLabel or TPanel?

Rotation via the orientation property on the font object does not seem to work (at least on the Windows 7 box I'm presently on).

Anyone have something that works within LCL?

Thanks.

Reply by email

Mattias Gaertner
to Andrew Brunner
Is there a component that offers rotated text drawn on component like TLabel or TPanel?

Feel free to improve TLabel and TPanel to support that.

Rotation via the orientation property on the font object does not seem to work (at least on the Windows 7 box I'm presently on).

Rotating text works. Just TLabel and TPanel don't support it.

Anyone have something that works within LCL?

Mattias

Reply by email

Mattias Gaertner
to zeljko
Show quoted text 10 lines
On Tuesday 15 June 2010 21:20, Andrew Brunner wrote: > Is there a component that offers rotated text drawn on component like > TLabel or TPanel? > > Rotation via the orientation property on the font object does not seem > to work (at least on the Windows 7 box I'm presently on). > > Anyone have something that works within LCL? It works with qt widgetset (TLabel).

AFAIK painting the text rotated works under all widgetsets (except gtk1). But the autosized bounds are not rotated.

Mattias

Reply by email