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. Modifying STREAMed input in a RichEditControl

Modifying STREAMed input in a RichEditControl

Scheduled Pinned Locked Moved C / C++ / MFC
learning
7 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.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    I streamed in text into a rich edit control To make it align I set SetDefaultCharFormat to Courier New the ES_READONLY flag is not in resource definition file for this control is there an way to modify the text Thanks

    L 1 Reply Last reply
    0
    • F ForNow

      I streamed in text into a rich edit control To make it align I set SetDefaultCharFormat to Courier New the ES_READONLY flag is not in resource definition file for this control is there an way to modify the text Thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Your post is somewhat unclear. Please explain in more detail what the problem is with modifying the text of an edit control.

      F 1 Reply Last reply
      0
      • L Lost User

        Your post is somewhat unclear. Please explain in more detail what the problem is with modifying the text of an edit control.

        F Offline
        F Offline
        ForNow
        wrote on last edited by
        #3

        Let me be specific I am writing a debugger and stream in the program listing. On the left hand side I have a one byte area for the user to in put a command like ‘B’ for breakpoint Thanks

        L 1 Reply Last reply
        0
        • F ForNow

          Let me be specific I am writing a debugger and stream in the program listing. On the left hand side I have a one byte area for the user to in put a command like ‘B’ for breakpoint Thanks

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Very interesting, in a non-specific way. I am sure you do have a specific question, but I have no idea what it is.

          F 1 Reply Last reply
          0
          • L Lost User

            Very interesting, in a non-specific way. I am sure you do have a specific question, but I have no idea what it is.

            F Offline
            F Offline
            ForNow
            wrote on last edited by
            #5

            I stream in the program TEXT from the Z/OS Assembler SYSADATA I then did SEL(0,-1) and changes it to RTF Courier New before displaying it, I would like to enter text for example here is a line "_ 204 00004A LA R4,QDINIT " Where the Hyhpen is I would like to let the user enter a letter "B' but the entire text is protected I have been doing research and it seems with the setevnetmask with a notification for a change I would get an en_chnage message and the doc says it I return 0 another message gets sent I am wondering if I process this message would be able get to set the text modify (for example the B) it. Don't know if I am on the right track with this. All I really want to do is let the user enter text in this now RTF richedit this should be possible after all Word is an RTF editor and you can modify the text even if its Rich Text (formatted with fonts) Thanks

            L 1 Reply Last reply
            0
            • F ForNow

              I stream in the program TEXT from the Z/OS Assembler SYSADATA I then did SEL(0,-1) and changes it to RTF Courier New before displaying it, I would like to enter text for example here is a line "_ 204 00004A LA R4,QDINIT " Where the Hyhpen is I would like to let the user enter a letter "B' but the entire text is protected I have been doing research and it seems with the setevnetmask with a notification for a change I would get an en_chnage message and the doc says it I return 0 another message gets sent I am wondering if I process this message would be able get to set the text modify (for example the B) it. Don't know if I am on the right track with this. All I really want to do is let the user enter text in this now RTF richedit this should be possible after all Word is an RTF editor and you can modify the text even if its Rich Text (formatted with fonts) Thanks

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              No idea what is happening there. I have used RichEdit controls and never had such a problem. Try a straightforward RichEdit control and don’t do anything to modify its settings to see what happens.

              F 1 Reply Last reply
              0
              • L Lost User

                No idea what is happening there. I have used RichEdit controls and never had such a problem. Try a straightforward RichEdit control and don’t do anything to modify its settings to see what happens.

                F Offline
                F Offline
                ForNow
                wrote on last edited by
                #7

                thanks that's all I was looking for from the way you see it I should be able to modify the text, I did a SetWindowText to the Richedit e.g. this is a test message and was able to type in it the rich edit control thanks for your help if from the way you see it I should be able to modify the text Ill research the problem

                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