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. Edit box

Edit box

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
4 Posts 3 Posters 0 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.
  • W Offline
    W Offline
    will1383
    wrote on last edited by
    #1

    I'm currently making something similar to a telnet-type window and I'm using a multi-line edit box to display the information I need. My question is this: I need the edit box to scroll, to I'm using the ES_AUTOVSCROLL style. Only thing is, I need to set the number of visible lines based on the window size in order for the scrolling to work automatically. I have not been able to find any information on how to set the max number of lines in a multi-line edit box. Does anyone know how to do this? Any comments or suggestions are greatly appreciated. Thanks!

    V 1 Reply Last reply
    0
    • W will1383

      I'm currently making something similar to a telnet-type window and I'm using a multi-line edit box to display the information I need. My question is this: I need the edit box to scroll, to I'm using the ES_AUTOVSCROLL style. Only thing is, I need to set the number of visible lines based on the window size in order for the scrolling to work automatically. I have not been able to find any information on how to set the max number of lines in a multi-line edit box. Does anyone know how to do this? Any comments or suggestions are greatly appreciated. Thanks!

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #2

      Why does the design utilize an editbox and not an editview? Kuphryn

      W 1 Reply Last reply
      0
      • V valikac

        Why does the design utilize an editbox and not an editview? Kuphryn

        W Offline
        W Offline
        will1383
        wrote on last edited by
        #3

        Becuase I'm not using MFC :( Stuck with what i got. Is there and edit view that's usable without mfc? I'm looking now.

        B 1 Reply Last reply
        0
        • W will1383

          Becuase I'm not using MFC :( Stuck with what i got. Is there and edit view that's usable without mfc? I'm looking now.

          B Offline
          B Offline
          basementman
          wrote on last edited by
          #4

          Just create the edit control of a size that fits the number of lines that you wish to display. Then, make sure that the ES_AUTOVSCROLL style is set. Problem solved. You also may want to set a fixed-pitch font and handle the background color to make it appear like a console window.

          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