CEdit Selection Orientation
-
Hello everybody, is it possible to determine the orientation of the selection into a CEdit? If I select a part of the text with the mouse from left to right, the cursor blinks at the end. But if I select the text from right to left, the cursor blinks at the beginning of the selection. A GetSel(...); returns always the start and end index in the left-to-right order. Or is there a function to retrieve the blinking cursor in a selection? Big thanks in advance :)
-
Hello everybody, is it possible to determine the orientation of the selection into a CEdit? If I select a part of the text with the mouse from left to right, the cursor blinks at the end. But if I select the text from right to left, the cursor blinks at the beginning of the selection. A GetSel(...); returns always the start and end index in the left-to-right order. Or is there a function to retrieve the blinking cursor in a selection? Big thanks in advance :)
Don't know if there's an "official" way of doing that, but you could try experimenting with GetCaretPos[^] and CharFromPos[^].
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<
-
Don't know if there's an "official" way of doing that, but you could try experimenting with GetCaretPos[^] and CharFromPos[^].
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<
-
Yourwelcome. :)
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > If it doesn't matter, it's antimatter.<