OnCaretMove Event not working?
OnCaretMove Event not working?
This is really odd. I have a TDBSRVRichViewEdit component on a form and everything is working, except that the cursor doesn't move on the screen when I use the arrow keys. The rulers update themselves and if I type in text it will appear where the cursor should be. I added something to the OnCaretMove event to see what might be happening but it isn't being triggered.
I have the same component on another form and it's working fine. As far as I can see the properties are exactly the same on both components.
Has anyone else come across this before?
I have the same component on another form and it's working fine. As far as I can see the properties are exactly the same on both components.
Has anyone else come across this before?
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
SRV caret not moving with arrow keys
I've updated now to RV13 and SRV4 and still have the problem. It's only on this large application that I am developing and even then I have exactly the same controls on two forms. One works and the other doesn't.
The arrow up, down, left, right, home, end keys don't move the caret but the actual position of the caret is updated - the rulers update and if I start typing in text it appears where the caret should be, not where it is showing on screen. If I hold down shift and arrow the correct text is highlighted
Page up and Page down do work though.
Also, if I down arrow so that the caret would be off the bottom of the display (i.e. onto a second page in the document) then the display doesn't scroll.
I've checked all of the properties and events between the two forms and I can't see any difference (apart from the DB and field used).
Best regards
Warren
The arrow up, down, left, right, home, end keys don't move the caret but the actual position of the caret is updated - the rulers update and if I start typing in text it appears where the caret should be, not where it is showing on screen. If I hold down shift and arrow the correct text is highlighted
Page up and Page down do work though.
Also, if I down arrow so that the caret would be off the bottom of the display (i.e. onto a second page in the document) then the display doesn't scroll.
I've checked all of the properties and events between the two forms and I can't see any difference (apart from the DB and field used).
Best regards
Warren
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 3
- Joined: Wed May 15, 2013 2:17 pm
- Location: Curitiba, Parana
I'm having the same problem here.
If I recreate the TSRichViewEdit again, it works back ok, but when I add a simple OnCaretMove procedure, all hell breaks loose...
And the procedure has nothing of great importance, just set the statusbar the caret position. And it still doesn't work if I remove the procedure.
The caret moves but is not visible its movement, when you begin to write, it reappears at its real position.
If I recreate the TSRichViewEdit again, it works back ok, but when I add a simple OnCaretMove procedure, all hell breaks loose...
And the procedure has nothing of great importance, just set the statusbar the caret position. And it still doesn't work if I remove the procedure.
The caret moves but is not visible its movement, when you begin to write, it reappears at its real position.
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 3
- Joined: Wed May 15, 2013 2:17 pm
- Location: Curitiba, Parana
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 3
- Joined: Wed May 15, 2013 2:17 pm
- Location: Curitiba, Parana
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: