Re: VFP6: Drag and Drop of a text box

Author: Abergquis@cs.com

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

Hi Jack,

Would the following help:

with This

.SelStart = 0 && or .SelStart = 1

.SelLength = Len(Alltrim(Evaluate(.ControlSource)))

endwith

in the MouseDown() event/method?

Art Bergquist

abergquis@cs.com

In a message dated 12/10/1999 10:59:35 AM Pacific Standard Time,

Skelley@NewJerseyDevils.com writes:

> Good Afternoon All:

> 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.

> Thanks for the help.

>

> Jack Skelley

> skelley@newjerseydevils.com

>

©1999 Abergquis@cs.com