Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How do I write a vertical text

How do I write a vertical text

Scheduled Pinned Locked Moved C / C++ / MFC
question
9 Posts 4 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Abhishek Narula
    wrote on last edited by
    #1

    I want to write a vertical text on my DC , something similar to what Office2K menu bar shows a vertical text when these menubar are docked on left or right edge of the window. How do I do that ?? Abhishek Narula "Learn to appreciate others ... World would appreciate you"

    M J A 3 Replies Last reply
    0
    • A Abhishek Narula

      I want to write a vertical text on my DC , something similar to what Office2K menu bar shows a vertical text when these menubar are docked on left or right edge of the window. How do I do that ?? Abhishek Narula "Learn to appreciate others ... World would appreciate you"

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      use \n in your string,like: "H\ne\nl\nl\no" Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
      Wish You Were Here-Pink Floyd-1975

      A 1 Reply Last reply
      0
      • M Mazdak

        use \n in your string,like: "H\ne\nl\nl\no" Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
        Wish You Were Here-Pink Floyd-1975

        A Offline
        A Offline
        Abhishek Narula
        wrote on last edited by
        #3

        Thanks but this would not serve the purpose ! See Lets say I want to write ABC vertically .. according to your solution output would be A B C but what I want is thought all the characters would be appearing in different lines but give 90 degree clockwise shift to them , as if you are reading the screen from left edge . did you get this ?? Abhishek Narula "Learn to appreciate others ... World would appreciate you"

        M 1 Reply Last reply
        0
        • A Abhishek Narula

          I want to write a vertical text on my DC , something similar to what Office2K menu bar shows a vertical text when these menubar are docked on left or right edge of the window. How do I do that ?? Abhishek Narula "Learn to appreciate others ... World would appreciate you"

          J Offline
          J Offline
          Joaquin M Lopez Munoz
          wrote on last edited by
          #4

          Hans Bühler's article A bevelline with horizontal and vertical text presents a class that outputs vertical text. Maybe you can investigate its source code to find out how it's done. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

          1 Reply Last reply
          0
          • A Abhishek Narula

            Thanks but this would not serve the purpose ! See Lets say I want to write ABC vertically .. according to your solution output would be A B C but what I want is thought all the characters would be appearing in different lines but give 90 degree clockwise shift to them , as if you are reading the screen from left edge . did you get this ?? Abhishek Narula "Learn to appreciate others ... World would appreciate you"

            M Offline
            M Offline
            Mazdak
            wrote on last edited by
            #5

            Abhishek Narula wrote: did you get this ?? No,I don't get it,Could you put an example here?The output you want to see on screen. Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
            Wish You Were Here-Pink Floyd-1975

            A 1 Reply Last reply
            0
            • M Mazdak

              Abhishek Narula wrote: did you get this ?? No,I don't get it,Could you put an example here?The output you want to see on screen. Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
              Wish You Were Here-Pink Floyd-1975

              A Offline
              A Offline
              Abhishek Narula
              wrote on last edited by
              #6

              Thats the Irony .. I cant show you that .. look at the following URL , you ll understand .. http://www.codeproject.com/staticctrl/rotated\_bevel.asp Abhishek Narula "Learn to appreciate others ... World would appreciate you"

              M 1 Reply Last reply
              0
              • A Abhishek Narula

                I want to write a vertical text on my DC , something similar to what Office2K menu bar shows a vertical text when these menubar are docked on left or right edge of the window. How do I do that ?? Abhishek Narula "Learn to appreciate others ... World would appreciate you"

                A Offline
                A Offline
                Atul Dharne
                wrote on last edited by
                #7

                Check the nOrientation parameter of CreateFont. Atul :suss: Don't they know that java is slow.:suss:

                A 1 Reply Last reply
                0
                • A Abhishek Narula

                  Thats the Irony .. I cant show you that .. look at the following URL , you ll understand .. http://www.codeproject.com/staticctrl/rotated\_bevel.asp Abhishek Narula "Learn to appreciate others ... World would appreciate you"

                  M Offline
                  M Offline
                  Mazdak
                  wrote on last edited by
                  #8

                  So you got your answer,don't you? Mazy "So,so you think you can tell, Heaven from Hell, Blue skies from pain,... How I wish,how I wish you were here."
                  Wish You Were Here-Pink Floyd-1975

                  1 Reply Last reply
                  0
                  • A Atul Dharne

                    Check the nOrientation parameter of CreateFont. Atul :suss: Don't they know that java is slow.:suss:

                    A Offline
                    A Offline
                    Abhishek Narula
                    wrote on last edited by
                    #9

                    Thanks .. I have not tried it as yet . but I think this would surely serve the purpose. Abhishek Narula "Learn to appreciate others ... World would appreciate you"

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups