Announcement

Collapse
No announcement yet.

Inhibit EFS results on price scale?

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

  • Inhibit EFS results on price scale?

    Is there any way for an EFS instance to inhibit the automatic adding of its return results to the rightmost price display, and also to the status window? In many cases, those displays are unwanted, and the user has to uncheck them, so that they do not appear.

    TIA

  • #2
    bfry5282
    I don't think you can inhibit the label in the scale but you can do it with the one in the Cursor Window using setShowCursorLabel(false); in preMain.
    Note that at this time this is an all or none setting.
    Alex

    Comment


    • #3
      Thanks Alex,

      I presume you mean that if an EFS returns multiple elements, that none of the elements will automatically be added to the cursor window. Is it also possible to add the element(s) back into the cursor window manually after the EFS is loaded, given that the efs initially inhibited that default action?

      TIA

      Comment


      • #4
        bfry5282
        Yes that is what I meant.
        With regards to your second question you can put the setShowCursorLabel(); statement in main() and have a FunctionParameter to toggle the Cursor label on or off.
        In preMain you would have for example the following

        var fp1 = new FunctionParameter("Cursor", FunctionParameter.BOOLEAN);
        fp1.setDefault(true);

        and in main the following (preferably executed once only)

        setShowCursorLabel(Cursor);

        which will toggle the labels on or off
        Alex

        Comment

        Working...
        X