Ejemplo n.º 1
0
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);

}
Ejemplo n.º 2
0
void TElementsView::MouseDown(BPoint where)
{
	// Check and see if we are in our DragRect
	BRect dragRect;
	GetDragRect(&dragRect);

	if ( dragRect.Contains(where) ) {
		StartMouseWatcher(this);
	}

}