Vertical text label

Hi,

I want to create a vertical text label (normal text rotated 90 degrees)
and can't seem to figure out how to do it. They only thing I have been
seen in the documentation is creating the text inside of a DC. Is there
any way to do this without resorting to a DC?

There is no reference to this in wxStaticText,wxTextCtrl. Is there
perhaps a wxFont with this characteristic?

Any suggestions? This doesn't seem like all that bizarre of a thing to
want to do, so I think I may have missed something obvious.

Thanks,
Nate

···

--
Nate Woody <warsaw@udel.edu>

Nate Woody wrote:

Is there
any way to do this without resorting to a DC?

I don't think so, but "resorting to a DC" is not such a bad thing. One
approach would be to generate a bitmap of your vertical text, and then
use that in a wxStaticBitmap control. If the text never changes, you
could store the bitmap and just load it. If it does change, you could
generatre it dynamically with a wxMemoryDC. The advantage of this
approach over just drawing the text directly on your window is that it
would be easier to use Sizers to place it properly for you.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                        
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

I want to create a vertical text label (normal text rotated 90 degrees)
and can't seem to figure out how to do it. They only thing I have been
seen in the documentation is creating the text inside of a DC. Is there
any way to do this without resorting to a DC?

I don't think so. Almost everything 'fancy' I've seen regarding text in wx
has involved DC manipulation to some extent, but the DC methods for dealing
with text are actually pretty slick, and once you get past the first blip in
the learning curve, pretty straightforward.