--- LineEdit.cpp 2009-06-03 09:06:23.000000000 +0800 +++ /home/gxl/upp/uppsrc/CtrlLib/LineEdit.cpp 2009-06-04 14:07:27.000000000 +0800 @@ -446,8 +446,10 @@ void LineEdit::MouseMove(Point p, dword flags) { if((flags & K_MOUSELEFT) && HasFocus() && HasCapture()) { int c = GetMousePos(p); - if(mpos != c) - PlaceCaret(c, true); + if(c == mpos) + PlaceCaret(mpos, true); + else + PlaceCaret(c,true); } } @@ -836,10 +838,13 @@ DrawTLText(iw.Alpha(), 0, 0, 9999, sample, Courier(10), White()); NextUndo(); if(DoDragAndDrop(ClipFmtsText(), iw) == DND_MOVE) { - RemoveSelection(); + //RemoveSelection(); Action(); } + Refresh(); + } + } END_UPP_NAMESPACE