Field Losing Focus?
dan at clearvisiontech.com
Mon Aug 12 17:01:01 EDT 2002
I have a field (field 1) where a user can type whatever they like. I have
another field (field 2) with a list of items the user can choose from.
Lastly, I have a button that the user can click to copy the the selected
line in field 2 into field 1.
Now, I want the text from field 2 to be placed into field 1 at the location
of the cursor. In the button's script, I have this:
focus on field 1
put word 2 of the selectedChunk into tChar
put the hilitedText of field 2 into tText
put tText after char tChar of field 1
This works fine if you don't click in field 2. As soon as you click in
field 2, the selectedChunk is empty.
I have set the traversalOn of both the button and field 2 to "off"
Anyone have any ideas?
More information about the Use-livecode