Rotate Labels?


#1

Hi,

First and foremost I would like to say a big thank you to Jules for all the hard work that goes into JUCE. I have been using it since the beginning of the year and it has changed my view on C++ completely.

Now for the question: Is there a way to make Label components display their text vertically instead of horizontally? So instead of the usual

LABEL TEXT

It should be

L
A
B
E
L

T
E
X
T

And is it possible to rotate the letters so that they lie on their sides?

Regards,
Frodo


#2

I dunno about the skyscraper label, but the rotated text can be done by using the DrawableText class.


#3

There’s nothing in labels to do this automatically, though you could just create a big multi-line label and use carriage-returns to stack the letters vertically.

And like valley says, there are lots of ways of drawing text at angles, so that’d probably be a better bet than using a label.

Having labels at different angles would cause a few problems because they can also be editable…


#4

Hi,

Thank you for the responses and pointing me in the right direction. The DrawableText object did the trick.

Frodo


#5