One for the experts

G

Guest

I posted this in an earlier thread, but have had no response, so i thought
i'd give it a more ego enhancing title!

I am trying to create a textbox that can display text in landscape (font
rotated 90 degrees anti clockwise, and text read from bottom to top, not left
to right... ie

portrait

+---------+
|nnnn ::: |
|::::: nn |
+---------+

landscape

+---------+
|.. c |
|.. c |
|.. |
| .. |
|c .. |
|c .. |
|c .. |
|c .. |
+---------+


I tried overriding the onpaint event in an inherited control class, but the
drawn text remains in portrait.

Am i barking up the wrong tree? As you can probably tell, i don't know which
direction i need to go..so all
help will be greatfully received.
Cheers,
James.
 
C

Chris

James said:
I posted this in an earlier thread, but have had no response, so i thought
i'd give it a more ego enhancing title!

I am trying to create a textbox that can display text in landscape (font
rotated 90 degrees anti clockwise, and text read from bottom to top, not left
to right... ie

portrait

+---------+
|nnnn ::: |
|::::: nn |
+---------+

landscape

+---------+
|.. c |
|.. c |
|.. |
| .. |
|c .. |
|c .. |
|c .. |
|c .. |
+---------+


I tried overriding the onpaint event in an inherited control class, but the
drawn text remains in portrait.

Am i barking up the wrong tree? As you can probably tell, i don't know which
direction i need to go..so all
help will be greatfully received.
Cheers,
James.

Not sure if it would work or not, but couldn't override the keypress
event and every time a keystroke is there, add an VbCr to make it appear
in landscape. You'd have to do something about them hitting backspace,
probably remove to chars if they do.

Just a thought.
Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top