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. Mobile Development
  3. Mobile
  4. How to scroll text in an edit control box in a dialog ?

How to scroll text in an edit control box in a dialog ?

Scheduled Pinned Locked Moved Mobile
questiontutorial
3 Posts 2 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.
  • G Offline
    G Offline
    glweid
    wrote on last edited by
    #1

    I have an Edit Box in my dialog that I write various text into. When the text is larger than the Edit Box I want it to scroll. I added vertical scrolling to the properties and the bard appears OK but it is non-functional. Also when the text goes past the Edit Box size it does not scroll. How can I get scrolling to work ?? Thanks G. Weideman

    realJSOPR 1 Reply Last reply
    0
    • G glweid

      I have an Edit Box in my dialog that I write various text into. When the text is larger than the Edit Box I want it to scroll. I added vertical scrolling to the properties and the bard appears OK but it is non-functional. Also when the text goes past the Edit Box size it does not scroll. How can I get scrolling to work ?? Thanks G. Weideman

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #2

      You have to go into the resource editor and tell set the correct properties for the edit control. I believe if you want it to wrap and scroll, you have to set the "wants returns" property. ------- sig starts "I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

      G 1 Reply Last reply
      0
      • realJSOPR realJSOP

        You have to go into the resource editor and tell set the correct properties for the edit control. I believe if you want it to wrap and scroll, you have to set the "wants returns" property. ------- sig starts "I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

        G Offline
        G Offline
        glweid
        wrote on last edited by
        #3

        John Thanks but I have the want return, vertical scroll and AutoVScroll set and the text does not scroll. I snapshot the text already in the Edit Box (if any) with GetDlgItemText(hWnd, IDC_EDIT3,textBuff,1024), then add the new text to it and use SetWindowText(hWnd,IDC_EDIT3 ,textBuff) to display the text to IDC_EDIT3. The Vertical Scroll Bar is being updated (it changes size) but I cannot move it and the text is not scrolling down. Any other ideas ? Thx G. Weideman

        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