For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Why "MoveTo" doesn't work?

angel's picture
Forums: 

Hi body,
In the HLR sample, there is a view in the SelectionDialog, I try to add MoveTo method into OnMouseMove function. The code as following,
void CSelectionDialog::OnMouseMove(UINT nFlags, CPoint point)
{
|
|
else //if ( nFlags & MK_RBUTTON)
// ============================ NO BUTTON =======================
{ // No buttons
myXmax = point.x; myYmax = point.y;
myInteractiveContext->MoveTo(point.x,point.y,myActiveView);
}

}

And I use GetShape button to display a object in this view. When I move the mouse to close the object, the color of the object doesn't change.

Sincerely,
Angel