-
-void wxDirCtrl::OnMouse( wxMouseEvent &event )
-{
- event.Skip(TRUE);
-
- if (event.LeftDown())
- {
- m_dragX = event.GetX();
- m_dragY = event.GetY();
- return;
- };
-
- if (event.Dragging())
- {
- if ((abs(m_dragX-event.GetX()) < 2) &&
- (abs(m_dragY-event.GetY()) < 2)) return;
-
- wxTextDragSource drag( this );
- drag.SetTextData( "Oh, what a drag." );
- drag.Start( event.GetX(), event.GetY() );
- };
-};
-