# Ruler Right-click event

**URL:** <https://discourse.slicer.org/t/ruler-right-click-event/2388>\
**Category:** Support\
**Created:** [March 21, 2018, 5:18pm UTC](https://discourse.slicer.org/t/ruler-right-click-event/2388 "2018-03-21T17:18:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jperdomo23](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jperdomo23/32/883_2.png) [@jperdomo23](https://discourse.slicer.org/u/jperdomo23)\
**Post date:** [March 21, 2018, 5:18pm UTC](https://discourse.slicer.org/t/ruler-right-click-event/2388/1 "2018-03-21T17:18:50Z")

</div>

Hi Slicer Discourse,

I am trying to show a context menu when a [vtkMRMLAnnotationRulerNode](http://apidocs.slicer.org/master/classvtkMRMLAnnotationRulerNode.html) object is right-clicked in Slicer, similar to this example using fiducials from the [Slicer Script Repository](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Show_a_context_menu_when_a_markup_point_is_clicked_in_a_slice_or_3D_view). Is this possible with ruler objects?

Thank you,

Jonathan Perdomo

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 21, 2018, 7:26pm UTC](https://discourse.slicer.org/t/ruler-right-click-event/2388/2 "2018-03-21T19:26:58Z")

</div>

I don’t think there is an event that could be observed. We are working on improving the widgets and in a couple of months we might get to the ruler widget and add this feature. Till then you might use Markup fiducials and connect them using a line created by MarkupsToModel module.

---

<div class="post-metadata">

**Author:** ![jperdomo23](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jperdomo23/32/883_2.png) [@jperdomo23](https://discourse.slicer.org/u/jperdomo23)\
**Post date:** [March 21, 2018, 7:31pm UTC](https://discourse.slicer.org/t/ruler-right-click-event/2388/3 "2018-03-21T19:31:01Z")

</div>

> [@lassoan](#):
>
> MarkupsToModel

OK thank you, I will look into that!
