[vtkusers] RightbuttonReleaseEvent

舞法舞天 278124177 at qq.com
Thu Jul 26 05:01:08 EDT 2018


Hi
     I use the observer to get the right mouse button click on a widget,but it dosen't work, can anyone tell me the right way to do this?
    my code as follow
   vtkCaptionWidget* captionWidget =
	vtkCaptionWidget::New();
vtkCaptionCallback* captionCall = vtkCaptionCallback::New();
captionWidget->SetInteractor(this->GetInteractor());
	captionWidget->SetRepresentation(captionRepresentation);
     
	captionWidget->AddObserver(vtkCommand::RightButtonReleaseEvent, captionCall);
	captionWidget->On();
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180726/8dc5b9fc/attachment.html>


More information about the vtkusers mailing list