# Pick a widget

**URL:** https://discourse.vtk.org/t/pick-a-widget/2573
**Category:** Support
**Created:** [February 10, 2020, 1:22pm UTC](https://discourse.vtk.org/t/pick-a-widget/2573 "2020-02-10T13:22:38Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![flaviu2](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/f/74df32/32.png) [@flaviu2](https://discourse.vtk.org/u/flaviu2)
#### Post date: [February 10, 2020, 3:04pm UTC](https://discourse.vtk.org/t/pick-a-widget/2573/3 "2020-02-10T15:04:28Z")

</div>

Is hard to reproduce my situation in a test app, but if is need it, I would do it, because I am stuck here for days ☹

My pipe line looks like this: I have a **vtkRenderWindowInteractor** from over I setup

```
m_pInteractor->SetInteractorStyle(m_pInteractorStyleImage);

```

where **m\_pInteractorStyleImage** is **vtkInteractorStyleImageEx** type.

and _vtkInteractorStyleImageEx_ is

```
class vtkInteractorStyleImageEx : public vtkInteractorStyleImage

```

ok.

In this **vtkInteractorStyleImageEx** I got:

```
void vtkInteractorStyleImageEx::OnLeftButtonDown()
{
	int nPickPosition[2];
    this->Interactor->GetEventPosition(nPickPosition);
	vtkPropPicker* pPicker = vtkPropPicker::New();
	pPicker->Pick(nPickPosition[0], nPickPosition[1], 0, m_pView->m_pRenderer);
	TRACE("Pointer: %p\n", pPicker->GetProp3D());
	pPicker->Delete();

    vtkInteractorStyleImage::OnLeftButtonDown();
}

```

that is my testing code …

---

_[View the full topic](https://discourse.vtk.org/t/pick-a-widget/2573)._
