Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Rotating text
Wed, Mar 23 2016 7:15 AMPermanent Link

Matthew Jones

I think I'd like to have a label text rotated - is this possible?

I essentially want the label to be tipped over backwards, so LABEL is

L
E
B
A
L

Only with the letters on their backs. (90 degrees anti-clockwise).

I think at the moment I can do this easily in a TPaint, but just in
case I missed something...

(This is for a sort of vertical tab set, but more complex than just
tabs)

--

Matthew Jones
Wed, Mar 23 2016 2:50 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< I think I'd like to have a label text rotated - is this possible? >>

Yes, but not at design-time, and you'll need to create your own TLabel descendant control in order to implement this behavior.

The way to set the rotation is specified in this method in the WebUI unit:

procedure TElement.RotationHandler(ACurrentTime: Double);

You'll need to extract it out of there and set it at run-time in your control as your new "Rotation" property changes.

I'll see about making it a common UI property (it will still be run-time only, but it will make it easier to use).

Tim Young
Elevate Software
www.elevatesoft.com
Image