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#
  4. Cursor Background [modified]

Cursor Background [modified]

Scheduled Pinned Locked Moved C#
helptutorial
6 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.
  • H Offline
    H Offline
    hiremath71
    wrote on last edited by
    #1

    hi, I am creating a editor in RichtextBox. can anyone say me how to add color to a Background of cursor. as soon as scroll the cursor the selected line color should change. like E,g:Ultra Edit-32 pls help me Thanku prasad -- modified at 4:58 Thursday 22nd February, 2007

    M 1 Reply Last reply
    0
    • H hiremath71

      hi, I am creating a editor in RichtextBox. can anyone say me how to add color to a Background of cursor. as soon as scroll the cursor the selected line color should change. like E,g:Ultra Edit-32 pls help me Thanku prasad -- modified at 4:58 Thursday 22nd February, 2007

      M Offline
      M Offline
      mike montagne
      wrote on last edited by
      #2

      You are asking about the cursor, but your concern is about scrolling behavior. To add a background color to a cursor, you build the cursor. To use the cursor, it has to be installed on the target system and you have to set the cursor in some event and reset to the default cursor in some other event. Needless to say, because of the installation issue, your intended usage of the cursor is impractical. As for the scrolling behavior, that's a design issue you handle through your control. Usually, you would select or focus the line so that it will be re-drawn in a focused state.

      H 1 Reply Last reply
      0
      • M mike montagne

        You are asking about the cursor, but your concern is about scrolling behavior. To add a background color to a cursor, you build the cursor. To use the cursor, it has to be installed on the target system and you have to set the cursor in some event and reset to the default cursor in some other event. Needless to say, because of the installation issue, your intended usage of the cursor is impractical. As for the scrolling behavior, that's a design issue you handle through your control. Usually, you would select or focus the line so that it will be re-drawn in a focused state.

        H Offline
        H Offline
        hiremath71
        wrote on last edited by
        #3

        hi, Thank you for u r reply. If I scroll the cursor through using keyboard Up/Down key as the cursor moves Up/Down the current line of the cursor background should channge. Thank You Prasad

        M 1 Reply Last reply
        0
        • H hiremath71

          hi, Thank you for u r reply. If I scroll the cursor through using keyboard Up/Down key as the cursor moves Up/Down the current line of the cursor background should channge. Thank You Prasad

          M Offline
          M Offline
          mike montagne
          wrote on last edited by
          #4

          Then you are not meaning the (usual) screen cursor, you are meaning the cursor which indicates focus of the current line. See the documentation for the control to find how to select/focus the current line.

          H 1 Reply Last reply
          0
          • M mike montagne

            Then you are not meaning the (usual) screen cursor, you are meaning the cursor which indicates focus of the current line. See the documentation for the control to find how to select/focus the current line.

            H Offline
            H Offline
            hiremath71
            wrote on last edited by
            #5

            hi, May i know how to focus it. Help me Thank U With Regards Prasad:):-D:laugh:;);P

            M 1 Reply Last reply
            0
            • H hiremath71

              hi, May i know how to focus it. Help me Thank U With Regards Prasad:):-D:laugh:;);P

              M Offline
              M Offline
              mike montagne
              wrote on last edited by
              #6

              I don't even know what control you are using, so I can't help you more than I have. But you need to help yourself at this point, because this is a usual chore of programming. Look up your control in documentation, find its "members," and browse them. You should find a property or a method which will focus your line. If not, what you want to do is not supported. (Surely it is.) ;)

              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