Stanimir Stamenkov wrote:[color=blue]
>
> /Paul Gorodyansky/:
>[color=green]
> > Example similar to MS' one is here -
> >
http://www.faqts.com/knowledge_base/...d/1052/fid/130
> > and I used it, too - to keep track of cursor position....
> >
> > But that example shows the same issue - no Caret symbol (bar) after
> > the operation.[/color]
>
> You're clearly taking the focus away from the text area pushing the
> button - what's the problem here?[/color]
No, it's just an example - in my case often there is NO button, no
"taking focus away", for example, in "To Latin" mode:
a) No selection
- I place cursor in the middle of the text - see Caret bar
- I press a letter on my physical keyboard (say, Cyrillic letter
that looks like mirrored 'R')
- in the script, I replace that letter with 2 latin letters 'ya'
and do caretPos.text =
- on screen, 'ya' is inserted and Caret (bar) is after that insertion
b) When I selected some text and want to replace it:
- I place cursor in the middle of the text - see Caret bar
- I select several symbols
then - same as in (a):
- I press a letter on my physical keyboard (say, Cyrillic letter
that looks like mirrored 'R')
- in the script, I replace that letter with 2 latin letters 'ya'
and do caretPos.text =
- on screen, the selected tex is replaced with 'ya' BUT there is
*no* Caret (bar) anymore.
Let me try Martin's function.
--
Regards,
Paul Gorodyansky
"Cyrillic (Russian): instructions for Windows and Internet":
http://RusWin.net
Russian On-screen Keyboard:
http://Kbd.RusWin.net