git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6809
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void ScintillaWX::StartDrag() {
- wxDropSource source;
+ wxDropSource source(wMain.GetID());
wxTextDataObject data(dragChars);
wxDragResult result;
void ScintillaWX::SetMouseCapture(bool on) {
- if (on)
+ if (on && !capturedMouse)
wMain.GetID()->CaptureMouse();
- else
+ else if (!on && capturedMouse)
wMain.GetID()->ReleaseMouse();
capturedMouse = on;
}
void ScintillaWX::StartDrag() {
- wxDropSource source;
+ wxDropSource source(wMain.GetID());
wxTextDataObject data(dragChars);
wxDragResult result;
void ScintillaWX::SetMouseCapture(bool on) {
- if (on)
+ if (on && !capturedMouse)
wMain.GetID()->CaptureMouse();
- else
+ else if (!on && capturedMouse)
wMain.GetID()->ReleaseMouse();
capturedMouse = on;
}