My thought would be to use a modifier key. If the user holds down the Ctrl key 
while over the text area, change the cursor to a hand, grab the current 
selection and drag/drop that. I've never done anything like that but it seems 
reasonable to me ;-}

--- In [email protected], "gareth_arch" <gareth_a...@...> wrote:
>
> Our end user is wanting us to try to build something where they can drag text 
> from the left side (in a TextArea) to TextInput boxes on the right hand side.
> 
> I've tried some different ways to try to accomplish this:
> 
> Making the TextArea draggable - This then prevents using the mouse to 
> highlight the text because as soon as you start to select the text, you are 
> now dragging the textarea.
> 
> Trying to get the selected text, but it gets deselected as soon as you 
> "re-click" the selected text.
> 
> My latest solution (which I thought *might* be OK with the end user) is 
> adding a mouse_up listener to the textarea, which then adds the selected text 
> to a variable.  The user can then double click the TextInput box, and the 
> previously selected text is added to the TextInput.text  This got an "ah, 
> hmm" from our end user, so I'm trying to figure out something else, or this 
> will be it :)
> 
> I'm trying to figure out how to keep the text selected "on re-click"...so 
> highlight text with mouse, left click on selected text (text stays 
> highlighted), and then I can use the DragManager and some finagling to get 
> the text to the TextInputs hopefully.  Only problem is, as soon as I 
> re-click, the selected text is deselected.  Any way to prevent this from 
> happening (or any other solutions that someone might have are always welcome)?
> 
> Thanks.
>


Reply via email to