Announcement

Collapse
No announcement yet.

function onMouseMove ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • function onMouseMove ?

    Hi,
    I am trying to learn about function onMouseMove I found in EFS manual
    but the example provided seems not to work on my computer.
    Please, could you check and confirm if this example works correctly on your computer?
    Thanks.
    Massimo

    function preMain() {
    setPriceStudy(true);
    setStudyTitle(" onMouseMove Basics");
    setShowCursorLabel(false);
    setAcceptMouseMove(true);
    }


    function main() {
    return;
    }

    function onMouseMove(nIndex, yValue, xPixel, yPixel) {
    debugClear();
    debugPrintln("index: " + nIndex + " price: " + yValue.toFixed(2) +
    " pixels X: " + xPixel + " pixels Y: " + yPixel);

    return;
    }

  • #2
    Hi,
    The problem is with line "SetAcceptMouseMove" that is not recognized.
    The message is:
    "ReferenceError: setAcceptMouseMove is not defined"
    Any ideas ???
    Regards
    Massimo

    Comment


    • #3
      I can confirm in version 10.6.2425.1208 (8/22/2011):

      1. There is no reference error that you mentioned. I'm guessing that you're using v11 because the setAcceptMouseMove(true) function call is silently accepted.

      2. There are no onMouseMove() debugPrintln() messages sent to the Formula Output window.

      Looks like it's either broken or its functionality has been removed in version 10 (and the docs weren't updated).
      Last edited by SteveH; 09-27-2011, 01:58 PM.

      Comment


      • #4
        Hi SteveH,
        thanks a lot for your confirm.
        Massimo

        Comment


        • #5
          eSignal Staff,

          Could you please run that script posted and report what you find?

          I have a sneaking suspicion that, even if it were fixed, the update rate would be so high in relation to Javascript being so slow that it would interfere with real-time updating of the chart data.

          I think the obvious use for even wanting to monitor an onMouseMove event would be to allow the user to click and drag their own custom lines/buttons around on a chart.

          Currently, I do click on things created from an EFS on my chart and drag them around but only using the onLButtonDown and onLButtonUp callbacks. The visual cue I use is to either increase the font or line thickness after the left click to give the user some feedback to their action and then I return things to their normal size after the onLButtonUp event. However, the response performance from a click to a reaction on the screen has a *really low* performance factor.

          Comment


          • #6
            eSignal Staff,
            a polite reply would be much appreciated !!!
            Regards
            Massimo

            Comment


            • #7
              eSignal Support Staff,

              Please respond to the original poster's question.

              We are overdue here for an answer.

              Comment

              Working...
              X