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. Managed C++/CLI
  4. cursor position

cursor position

Scheduled Pinned Locked Moved Managed C++/CLI
c++helptutorial
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.
  • R Offline
    R Offline
    rose196
    wrote on last edited by
    #1

    Hai, Hai I am creating a text editor. My problem is when i was selecting a word, the cursor should point the end of the selected word. I can able to select a word but i don,t know how to place the cursor at the end of the word position. I am using MC++ (windows form application). Can you tell me how to do this. Thanks.

    L 1 Reply Last reply
    0
    • R rose196

      Hai, Hai I am creating a text editor. My problem is when i was selecting a word, the cursor should point the end of the selected word. I can able to select a word but i don,t know how to place the cursor at the end of the word position. I am using MC++ (windows form application). Can you tell me how to do this. Thanks.

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      rose196 wrote:

      I am creating a text editor. My problem is when i was selecting a word, the cursor should point the end of the selected word.

      The mouse cursor? Or do you mean the Caret?[^]

      led mike

      R 1 Reply Last reply
      0
      • L led mike

        rose196 wrote:

        I am creating a text editor. My problem is when i was selecting a word, the cursor should point the end of the selected word.

        The mouse cursor? Or do you mean the Caret?[^]

        led mike

        R Offline
        R Offline
        rose196
        wrote on last edited by
        #3

        Hai Thanks for your replay. I mean the caret. I saw the link as you mensioned above i couldn,t understand. Now i am using richtextbox. can you tell me how to get the caret current position. Thanks in advance,

        M 1 Reply Last reply
        0
        • R rose196

          Hai Thanks for your replay. I mean the caret. I saw the link as you mensioned above i couldn,t understand. Now i am using richtextbox. can you tell me how to get the caret current position. Thanks in advance,

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          The caret indicates the insertion point. When you have a selection, the selection is the insertion point so the caret applies to the whole selection. It does't make sense to show a caret at the end. Mark

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          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