07-10-2009 11:24 AM
Hello,
i have two string-controls with text inside.
I have also a button. Now i want to click with the mouse in stringcontrol_2 at a special position, then click the button and then the text from stringcontrol_1 should be inserted at the position in string_2 where i was with the cursor before.
Is this possible?
Thx for any ideas
Solved! Go to Solution.
07-10-2009 12:31 PM
Hi OnlyOne,
you can use the keydown event of the string control. Inside of this event you can read the property "Text.selection". If you don't select a text range, then start and end are equal, but they show where the cursor was placed. You can store these values in a shift register to use them in the button "value change" event.
Mike
07-13-2009 04:46 AM
Hi MikeS81,
thanks for the fast help. I used the mouse-down-event because keydown is for keyboard.
But now it works great.