I have a WinForms program, wherever you change your selection, replace the rich textbox There is a need to select some of the text to do so, and therefore I lose my current selection.
I can select and load selection, select, length properties, but I can not have "selection direction": If the user was exposing back or backward from the cursor
How can I either save the selection direction without changing direction, or any thoughts about the lesson?
Yuk, not ugly problem, EM_SETPARAFORMAT can only work on the current selection. And EM_EXSETSEL always puts the caret at the end of the selection. You can find the direction of selection, change the selection selection, but you can not take care of the right place. One edit control is the same problem.
This is usually not a problem because color is rediscovered only when the user revises the text, not the only solution that I can think of while selecting text, by keystroke injection. Restoring selection. This is bad.
Comments
Post a Comment