trichview.com

trichview.support




1.8.26.2 - glitches with selection


Return to index


Author

Message

Andrew Chichlowski

Posted: 06/29/2004 9:07:39


Dear Sergey,


With RichView 1.8.26.2 I found the following problems with selection:


SCENARIO 1:


1. Enter sample text, for example "111 222"

2. Move cursor to position just before "222" and press Shift+Right.

3. The expected behavior would be that "2" becomes highlighted and selection

returned by GetSelectionBounds is { 0, 5, 0, 6 }.

The actual behavior is that "111 2" becomes highlighted and selection

returned by GetSelectionBounds is { 0, 6, 0, 6 }.


SCENARIO 2:


1. Enter sample text, for example "111 222"

2. Move cursor to position just before "222" and press Ctrl+Shift+Right.

3. The expected behavior would be that "222" becomes highlighted and

selection returned by GetSelectionBounds is { 0, 5, 0, 8 }.

The actual behavior is that "111 222" becomes highlighted and selection

returned by GetSelectionBounds is { 0, 8, 0, 8 }.


SCENARIO 3:

1. Make any non-empty selection in the TRichViewEdit by the keyboard

(Shift+Right, Shift+Left, Ctrl+Shift+Right, Ctrl+Shift+Left etc)

2. Try to move around by arrow keys without Ctrl and Shift.

3. The expected behavior is that selection (highlight) should disappear

(text gets "deselected") and there is only blinking cursor at current caret

position. The actual behavior is that selection (highlight) is still present

and moving the caret does not "deselect" text.


SCENARIO 4:

1. Make any non-empty selection in the TRichViewEdit by the keyboard

(Shift+Right, Shift+Left, Ctrl+Shift+Right, Ctrl+Shift+Left etc)

2. Try to delete selection by VK_DELETE

3. The expected behavior is that selection should get deleted. The actual

behavior is that single character under the cursor is deleted.


SCENARIO 5:

1. Make any non-empty selection in the TRichViewEdit by the keyboard

(Shift+Right, Shift+Left, Ctrl+Shift+Right, Ctrl+Shift+Left etc)

2. Press any alphanumeric key

3. The expected behavior is that selection should get deleted and replaced

by the character corresponding to pressed key. The actual behavior is that

single character under the cursor is inserted and highlighted text is not

deleted.


I hope this information would be useful for further improvement of RichView

component.


Best regards, Andrew Chichlowski.





Powered by ABC Amber Outlook Express Converter