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