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. To avoid deselction of selected character when clicked on the selected character in CRichEditView.

To avoid deselction of selected character when clicked on the selected character in CRichEditView.

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
10 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.
  • R Offline
    R Offline
    Raghu Panduranga
    wrote on last edited by
    #1

    I have used the CRicheEditView. I am selcting the character in the editor. When i clcik on the selected character it getting deselected and cursor is moving into begining of the charcter. How to avoid his deselction and movement of cursor?

    Raghu

    T 1 Reply Last reply
    0
    • R Raghu Panduranga

      I have used the CRicheEditView. I am selcting the character in the editor. When i clcik on the selected character it getting deselected and cursor is moving into begining of the charcter. How to avoid his deselction and movement of cursor?

      Raghu

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      maybe you need to search for Drag n' Drop implementation... otherwise I don't see what you're trying to do, as it appears to me like a standard Windows behavior.

      [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

      R 1 Reply Last reply
      0
      • T toxcct

        maybe you need to search for Drag n' Drop implementation... otherwise I don't see what you're trying to do, as it appears to me like a standard Windows behavior.

        [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

        R Offline
        R Offline
        Raghu Panduranga
        wrote on last edited by
        #3

        Hi thank you for your Suggestion. I am using CRicheDotView as hex editor and using selected single nibble as a cursor. But when it is selcted i want to avoid clciking on selected nibble again. In my cas whats happening is when i clicked on the selected character it deselcting. I dont that to happen. Also Drag and drop works for only OLE Items i think.

        Raghu

        T I 2 Replies Last reply
        0
        • R Raghu Panduranga

          Hi thank you for your Suggestion. I am using CRicheDotView as hex editor and using selected single nibble as a cursor. But when it is selcted i want to avoid clciking on selected nibble again. In my cas whats happening is when i clicked on the selected character it deselcting. I dont that to happen. Also Drag and drop works for only OLE Items i think.

          Raghu

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          ahh, Hex editor, that's different. I believe you have to overload the event handler of the "Mouse Left Button Down" (I don't remember by heart currently) to make the automatic selection

          [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

          R 1 Reply Last reply
          0
          • T toxcct

            ahh, Hex editor, that's different. I believe you have to overload the event handler of the "Mouse Left Button Down" (I don't remember by heart currently) to make the automatic selection

            [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

            R Offline
            R Offline
            Raghu Panduranga
            wrote on last edited by
            #5

            HI, Even I have overloadd the OnLButtonDown and checking for CrSel.cpMin and cpMax position as well. It is working fine in Debugging mode, but when exected without debug mode it is giving problem.

            Raghu

            T 1 Reply Last reply
            0
            • R Raghu Panduranga

              Hi thank you for your Suggestion. I am using CRicheDotView as hex editor and using selected single nibble as a cursor. But when it is selcted i want to avoid clciking on selected nibble again. In my cas whats happening is when i clicked on the selected character it deselcting. I dont that to happen. Also Drag and drop works for only OLE Items i think.

              Raghu

              I Offline
              I Offline
              Iain Clarke Warrior Programmer
              wrote on last edited by
              #6

              If you're still struggling, I've used Eugene Pustovoyt[^]'s CPPDumpCtrl[^] in the past with great success. A nice little hex / ascii display / editor. Though I think the article name needs work! Iain.

              Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

              R 2 Replies Last reply
              0
              • I Iain Clarke Warrior Programmer

                If you're still struggling, I've used Eugene Pustovoyt[^]'s CPPDumpCtrl[^] in the past with great success. A nice little hex / ascii display / editor. Though I think the article name needs work! Iain.

                Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

                R Offline
                R Offline
                Raghu Panduranga
                wrote on last edited by
                #7

                Hi, Thank you for sharing infromation. Please let me know how can i use tool tip here?

                Raghu

                I 1 Reply Last reply
                0
                • I Iain Clarke Warrior Programmer

                  If you're still struggling, I've used Eugene Pustovoyt[^]'s CPPDumpCtrl[^] in the past with great success. A nice little hex / ascii display / editor. Though I think the article name needs work! Iain.

                  Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

                  R Offline
                  R Offline
                  Raghu Panduranga
                  wrote on last edited by
                  #8

                  Thank you for your sharing information i think it is helpful for me.

                  Raghu

                  1 Reply Last reply
                  0
                  • R Raghu Panduranga

                    Hi, Thank you for sharing infromation. Please let me know how can i use tool tip here?

                    Raghu

                    I Offline
                    I Offline
                    Iain Clarke Warrior Programmer
                    wrote on last edited by
                    #9

                    I have no idea, off the top of my head. When I display the hex data, anything I want to know about is on the screen already (address, hex value, and ascii value). As there is no additional information, I don't need tooltips for the control. As it inherits from CWnd, I imagine you can use CWnd::EnableTooltip(s) (can't remember exactly). But when I use tooltips, I roll my own, as I like tips that vary depending on where I am in the control. There are many articles on tooltips, and I would also recommend you look at CPopupText from MSDN magazine June 2001, written by Paul DiLascia. Back then I was learning [*], and his articles taught me a lot. Iain. [*] I still am - but I hope I have the easy stuff in my head now!

                    Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

                    1 Reply Last reply
                    0
                    • R Raghu Panduranga

                      HI, Even I have overloadd the OnLButtonDown and checking for CrSel.cpMin and cpMax position as well. It is working fine in Debugging mode, but when exected without debug mode it is giving problem.

                      Raghu

                      T Offline
                      T Offline
                      toxcct
                      wrote on last edited by
                      #10

                      Raghu Panduranga wrote:

                      It is working fine in Debugging mode, but when exected without debug mode it is giving problem

                      any error message by chance ?

                      [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

                      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