Re: VFP6: Drag and Drop of a text box

Author: Ed Leafe

Posted: 1999-12-10 at 14:21:59

On 12/10/1999 1:54 PM, Jack Skelley supposedly said:

>I guess after manipulating (fooling with <g>) a text box to text box

>drag and drop I have concluded that the text box must have select on

>entry set to true before a drag operation can start.

>So that requires 2 mouse clicks. 1 to set focus to the current text box

>(with select on entry set to .t.) and a second click (and hold) to begin

>the drag operation.

>How can this be done with only one mouse click on the textbox? So that

>the text is selected then with a long enough hold the drag operation can

>start.

>I have tried mouse down to Ctrl + A the text box but it doesn't seem to

>be reliable. The selected text isn't always what gets dropped the

>receiving text box.

In the MouseDown() event, place

This.Drag(1)

to initiate dragging. The drawback, of course, is that the user can no

longer use the mouse to select text within the textbox, as this will

cause the box to be dragged instead.

___/

/

__/

/

____/

Ed Leafe

http://leafe.com/

©1999 Ed Leafe