void TExportZone::HandleClick(BPoint where) { // // Determine where mouse click occured // // In InRect? if (m_InRect.Contains(where)) { m_DragType = kInDrag; } // m_OutRect? else if (m_OutRect.Contains(where)) { m_DragType = kOutDrag; } // m_ExportChannel? else if (m_ExportChannel.Contains(where) ) { // Handle zone drag special TrackZone(where); } // Launch mouse tracking thread if (m_DragType != kNoDrag) m_MouseTracker = StartMouseWatcher(this); }
void TElementsView::MouseDown(BPoint where) { // Check and see if we are in our DragRect BRect dragRect; GetDragRect(&dragRect); if ( dragRect.Contains(where) ) { StartMouseWatcher(this); } }