Cursor Background [modified]
-
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
-
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
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.
-
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.
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
-
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
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.
-
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.
hi, May i know how to focus it. Help me Thank U With Regards Prasad:):-D:laugh:;);P
-
hi, May i know how to focus it. Help me Thank U With Regards Prasad:):-D:laugh:;);P
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.) ;)