CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2003
    Posts
    116

    rotation of controls

    hi
    i was wondering can a control be rotated , for example a tree be displayed in a horizontal direction, or rotated to 45 or 90 degrees, etc.

    or an edit box in vertical direction anything like it.
    as we already have a horizontal and vertical scroll bars, a horizontal or vertical slider

    what cud be the pros and cons in drawing and updations once such a control is made.
    any ideas?
    cheers

  2. #2
    Join Date
    Dec 2002
    Posts
    35
    You might be able to override the painting function for the control and rotate it yourself using something like this, also mouse clicks would have to be translated.

    I don't know if you would want the sideways text though, or if there is a way to rotate a control while keeping the text upright. If you wanted an edit control like that you could make it tall and narrow, disable horizontal scrolling, and append a newline for every character entered while changing the functions of other keys accordingly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured