fixes for drop source and for capturing the mouse

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2000-03-17 19:30:19 +00:00
parent aa9fb2be6d
commit 8759d4d519
2 changed files with 6 additions and 6 deletions

View File

@@ -96,7 +96,7 @@ void ScintillaWX::Finalise() {
void ScintillaWX::StartDrag() {
wxDropSource source;
wxDropSource source(wMain.GetID());
wxTextDataObject data(dragChars);
wxDragResult result;
@@ -129,9 +129,9 @@ void ScintillaWX::SetTicking(bool on) {
void ScintillaWX::SetMouseCapture(bool on) {
if (on)
if (on && !capturedMouse)
wMain.GetID()->CaptureMouse();
else
else if (!on && capturedMouse)
wMain.GetID()->ReleaseMouse();
capturedMouse = on;
}