GetDocument()->ShiftDragEvent(myXmax,myYmax,0,myView);
else
GetDocument()->DragEvent(myXmax,myYmax,0,myView);
- DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_True);
- break;
+ DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_True);
+ break;
case CurAction3d_DynamicZooming :
myView->Zoom(myXmax,myYmax,point.x,point.y);
// save the current mouse coordinate in min \n";
if ( m_IsVisible && !Draw) // move or up : erase at the old position
{
- clientDC.MoveTo(StoredMinX,StoredMinY); clientDC.LineTo(StoredMinX,StoredMaxY);
+ clientDC.MoveTo(StoredMinX,StoredMinY);
+ clientDC.LineTo(StoredMinX,StoredMaxY);
clientDC.LineTo(StoredMaxX,StoredMaxY);
- clientDC.LineTo(StoredMaxX,StoredMinY); clientDC.LineTo(StoredMinX,StoredMinY);
+ clientDC.LineTo(StoredMaxX,StoredMinY);
+ clientDC.LineTo(StoredMinX,StoredMinY);
m_IsVisible = false;
}
if (Draw) // move : draw
{
- clientDC.MoveTo(StoredMinX,StoredMinY); clientDC.LineTo(StoredMinX,StoredMaxY);
+ clientDC.MoveTo(StoredMinX,StoredMinY);
+ clientDC.LineTo(StoredMinX,StoredMaxY);
clientDC.LineTo(StoredMaxX,StoredMaxY);
- clientDC.LineTo(StoredMaxX,StoredMinY); clientDC.LineTo(StoredMinX,StoredMinY);
+ clientDC.LineTo(StoredMaxX,StoredMinY);
+ clientDC.LineTo(StoredMinX,StoredMinY);
m_IsVisible = true;
}
- if (m_Pen) clientDC.SelectObject(aOldPen);
+ if (m_Pen)
+ clientDC.SelectObject(aOldPen);
}
void CViewer3dView::OnModifyChangeBackground()
theButtonDownX=x;
theButtonDownY=y;
}
-
- if (TheState == 0)
- myAISContext->Select(theButtonDownX,theButtonDownY,x,y,aView);
+ if (TheState == 1)
+ {
+ myAISContext->Select(theButtonDownX,theButtonDownY,x,y,aView);
+ }
}
//-----------------------------------------------------------------------------------------
const Standard_Integer y ,
const Handle(V3d_View)& aView )
{
- myAISContext->Select();
+ myAISContext->Select();
}
//-----------------------------------------------------------------------------------------