<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I have a class that extend vtkChartXY and I've tried to override its<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"> MouseMoveEvent(). I've added the following line</span></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">




<span></span>





<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(112,61,170)"><span style="background-color:rgb(249,203,156)"><span class="gmail-s1" style="color:rgb(186,45,162)">if</span><span class="gmail-s2" style="color:rgb(0,0,0)">(mouse.</span><span class="gmail-s3" style="color:rgb(62,30,129)">GetButton</span><span class="gmail-s2" style="color:rgb(0,0,0)">()== </span>vtkContextMouseEvent<span class="gmail-s2" style="color:rgb(0,0,0)">::</span><span class="gmail-s3" style="color:rgb(62,30,129)">LEFT_BUTTON</span><span class="gmail-s2" style="color:rgb(0,0,0)">)</span></span></p>


to intercept the start of the dragging event, but it returns false. </div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">The only condition that returns true put in that function is this one</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">




<span style="background-color:rgb(249,203,156)"><span></span>





</span><p class="gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(112,61,170)"><span style="background-color:rgb(249,203,156)"><span class="gmail-s1" style="color:rgb(186,45,162)">if</span><span class="gmail-s2" style="color:rgb(0,0,0)">(mouse.</span><span class="gmail-s3" style="color:rgb(62,30,129)">GetButton</span><span class="gmail-s2" style="color:rgb(0,0,0)">()== </span>vtkContextMouseEvent<span class="gmail-s2" style="color:rgb(0,0,0)">::</span><span class="gmail-s3" style="color:rgb(62,30,129)">NO_BUTTON</span><span class="gmail-s2" style="color:rgb(0,0,0)">)</span></span></p>


<br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I know something is missing but I can't understand what 😅</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><i><font color="#0b5394"><span></span><span></span>Martina</font></i></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2018-05-04 14:05 GMT+02:00 Paul Douglas Hahn <span dir="ltr"><<a href="mailto:pdhahn@comcast.net" target="_blank">pdhahn@comcast.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    You can override the MouseMoveEvent() method in your subclass of
    vtkChartXY.<div><div class="h5"><br>
    <br>
    <div class="m_-7110634992443244356moz-cite-prefix">On 05/04/2018 04:46 AM, Martina
      Litterio wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">
        <div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Updates: I'm finally able to show a tooltip
          when I left click on my vtkChartXY.</div>
        <div class="gmail_default" style="font-family:trebuchet ms,sans-serif">My problem now is that I would like that the
          tooltip changes its values when I drag the point with the
          mouse.</div>
        <div class="gmail_default" style="font-family:trebuchet ms,sans-serif">How can I intercept that event?</div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="m_-7110634992443244356gmail_signature" data-smartmail="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr"><i><font color="#0b5394"><span></span><span></span>Martina</font></i></div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">2018-05-04 9:53 GMT+02:00 Martina
          Litterio <span dir="ltr"><<a href="mailto:litteriomartina@gmail.com" target="_blank">litteriomartina@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hello everybody!</div>
              <div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br>
              </div>
              <div class="gmail_default" style="font-family:trebuchet ms,sans-serif">I have a vtkChartXY like the which one in
                figure and I would like to add a tooltip when I select a
                point with the mouse left button. Is it possible? I've
                tried a little bit, but I failed!</div>
              <div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Thank you for the help!</div>
              <span class="m_-7110634992443244356HOEnZb"><font color="#888888">
                  <div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br>
                  </div>
                  <div>
                    <div class="m_-7110634992443244356m_-3840956984049037699gmail_signature" data-smartmail="gmail_signature">
                      <div dir="ltr">
                        <div>
                          <div dir="ltr">
                            <div>
                              <div dir="ltr">
                                <div>
                                  <div dir="ltr">
                                    <div>
                                      <div dir="ltr"><i><font color="#0b5394"><span></span><span></span>Martina</font></i></div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </font></span></div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="m_-7110634992443244356mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
Powered by <a class="m_-7110634992443244356moz-txt-link-abbreviated" href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="m_-7110634992443244356moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a class="m_-7110634992443244356moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a>

Search the list archives at: <a class="m_-7110634992443244356moz-txt-link-freetext" href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a>

Follow this link to subscribe/unsubscribe:
<a class="m_-7110634992443244356moz-txt-link-freetext" href="https://vtk.org/mailman/listinfo/vtkusers" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a>
</pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br></div>