Ok. Any further hints? I don't really have a clue on how
to produce any text in another direction than left to
right, regardless of renderer...
(My client called in the afternoon and wanted to demo it
for important customers by tomorrow so I didn't give
him any hopes really (since he gave me other work as well)
but I'm still curious...
···
At 12:29 2003-03-12 -0800, Robin Dunn wrote:
Magnus Lycka wrote:
Is it possible to get vertical (rotated 90 degrees) text
in a wxGrid (MSW)?
Not out of the box but you can write your own wxGridCellRenderer class and draw the text vertical yourself there.
Just create a DC and then draw some rotated text. For example,
here's something that draws text rotated 90 deg at coord (25, 50):
dc.DrawRotatedText ("My Text", 25, 50, 90)
-- Mike
···
On Wed, Mar 12 @ 22:42, Magnus Lycka wrote:
Ok. Any further hints? I don't really have a clue on how
to produce any text in another direction than left to
right, regardless of renderer...
(My client called in the afternoon and wanted to demo it
for important customers by tomorrow so I didn't give
him any hopes really (since he gave me other work as well)
but I'm still curious...
Ok. Any further hints? I don't really have a clue on how
to produce any text in another direction than left to
right, regardless of renderer...
When in doubt look at ALL the examples in the demo. It is
highly educational about what can be done, and often has
things in the code that are a good thing for you to do in
your own and you just don't realise it (eg making enter moving
horizontally in a grid).
Anyway if you look in the wxScrolledWindow demo you
can see rotated text and lots of other drawing. (The same
stuff is used in a few of the print demos as well).