]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dnd/dnd.cpp
More-or-less finished reasonably cool wxToolBar class with tooltips.
[wxWidgets.git] / samples / dnd / dnd.cpp
index 252a70169220bf7fb80dc464e5ba6bcd8c8f48da..2d596e27cba029af81e4113849d128dea7880b45 100644 (file)
@@ -149,7 +149,7 @@ DnDFrame::DnDFrame(wxFrame *frame, char *title, int x, int y, int w, int h)
   SetIcon(wxIcon(mondrian_xpm));
 #endif  
   
-  const int widths[] = { -1 };
+//  const int widths[] = { -1 };
   CreateStatusBar();
 
   // construct menu
@@ -191,9 +191,7 @@ DnDFrame::DnDFrame(wxFrame *frame, char *title, int x, int y, int w, int h)
   m_pLogPrev = wxLog::SetActiveTarget(m_pLog);
 
   // associate drop targets with 2 text controls
-#ifdef __WXMSW__  // it's not supported (yet) on other platforms
   m_ctrlFile->SetDropTarget(new DnDFile(m_ctrlFile));
-#endif  //MSW
   m_ctrlText->SetDropTarget(new DnDText(m_ctrlText));  
 
   wxLayoutConstraints *c;
@@ -304,11 +302,11 @@ void DnDFrame::OnLeftDown(wxMouseEvent &WXUNUSED(event) )
     const char *pc;
 
     switch ( dragSource.DoDragDrop(TRUE) ) {
-      case wxDropSource::Error:   pc = "Error!";    break;
-      case wxDropSource::None:    pc = "Nothing";   break;
-      case wxDropSource::Copy:    pc = "Copied";    break;
-      case wxDropSource::Move:    pc = "Moved";     break;
-      case wxDropSource::Cancel:  pc = "Cancelled"; break;
+      case wxDragError:   pc = "Error!";    break;
+      case wxDragNone:    pc = "Nothing";   break;
+      case wxDragCopy:    pc = "Copied";    break;
+      case wxDragMove:    pc = "Moved";     break;
+      case wxDragCancel:  pc = "Cancelled"; break;
       default:                    pc = "Huh?";      break;
     }