One for the experts

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • James Randle of Epidermis

    #1

    One for the experts

    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.

  • Chris

    #2
    Re: One for the experts

    James Randle of Epidermis wrote:[color=blue]
    > 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.
    >[/color]

    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

    Comment

    • Chris Dunaway

      #3
      Re: One for the experts

      Check this article out. It may help you.



      Comment

      Working...