Detecting Position of Cursor in Field
Posted: Thu Mar 15, 2012 12:45 am
Hi there,
I am currently doing this in a button handler :
So OK this is inserting some per-configured text at the end of any current text as the user types.. reasonably acceptable in the app.
What i would really like to do, to enable the user to enter this pre-configured text any where in the text at any time is something like this :
I cant find any way to get the offset of the cursor in the text field.. Is this possible..?
I am currently doing this in a button handler :
Code: Select all
on mouseUp
put "Test Text" after field "htmlContent"
end mouseUp
What i would really like to do, to enable the user to enter this pre-configured text any where in the text at any time is something like this :
Code: Select all
on mouseUp
put "Test Text" after theFlashingCursor of field "htmlContent"
end mouseUp