# LeftButtonPressEvent of vtkResliceCursorWidget

**URL:** https://discourse.vtk.org/t/leftbuttonpressevent-of-vtkreslicecursorwidget/13421
**Category:** Support
**Created:** [March 1, 2024, 8:39am UTC](https://discourse.vtk.org/t/leftbuttonpressevent-of-vtkreslicecursorwidget/13421 "2024-03-01T08:39:47Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![mortifiedpenguin](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/b3f665/32.png) [@mortifiedpenguin](https://discourse.vtk.org/u/mortifiedpenguin)
#### Post date: [March 2, 2024, 10:21am UTC](https://discourse.vtk.org/t/leftbuttonpressevent-of-vtkreslicecursorwidget/13421/4 "2024-03-02T10:21:44Z")

</div>

Hi Paulo,

thanks for your response. I actually don’t use subclasses at all, I simply register to the events of the interactor, e.g. LeftButtonPressEvt. This works fine for the vtkRenderWindow, when I click into the window the event is called.  
However if I click on a widget (e.g. vtkResliceCursorWidget), the widget seems to completely swallow the event and the click handler of the renderwindow is not called. The vtkResliceCursorWidget exposes an event LeftButtonPressEvt, but that handler is never called upon clicking.  
I think my issue is similar to this one: [LeftButtonPressEvent to vtkButtonWidget](https://discourse.vtk.org/t/leftbuttonpressevent-to-vtkbuttonwidget/4607)  
I can provide a code sample shortly.

---

_[View the full topic](https://discourse.vtk.org/t/leftbuttonpressevent-of-vtkreslicecursorwidget/13421)._
