Announcement

Collapse
No announcement yet.

Callback

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

  • Callback

    I have been trying for hours to get callbacks working with no luck. Even this simple program doesn't seem to work in ESignal (11.5 SP2)

    If anyone could explain why this doesn't work I would be eternally grateful.


    var flg = Text.RELATIVETOLEFT|Text.RELATIVETOBOTTOM| Text.FRAME | Text.ONTOP ;

    backcolor = Color.yellow;
    forcolor = Color.blue;

    function preMain(){
    setPriceStudy(true);
    }

    function mycallback(){

    debugPrintln("mycallback called ");


    return;
    }

    function main(){
    drawTextPixel( 10, 10, "mycallback@URL=EFS:mycallback", forcolor, backcolor, flg, "Arial", 14, "btn");

    return;
    }

  • #2
    vareys
    The callback is working fine
    You may want to read the Notes in this article of the EFS KnowledgeBase regarding the mouse functions in version 11
    Alex


    Originally posted by vareys View Post
    I have been trying for hours to get callbacks working with no luck. Even this simple program doesn't seem to work in ESignal (11.5 SP2)

    If anyone could explain why this doesn't work I would be eternally grateful.


    var flg = Text.RELATIVETOLEFT|Text.RELATIVETOBOTTOM| Text.FRAME | Text.ONTOP ;

    backcolor = Color.yellow;
    forcolor = Color.blue;

    function preMain(){
    setPriceStudy(true);
    }

    function mycallback(){

    debugPrintln("mycallback called ");


    return;
    }

    function main(){
    drawTextPixel( 10, 10, "mycallback@URL=EFS:mycallback", forcolor, backcolor, flg, "Arial", 14, "btn");

    return;
    }

    Comment

    Working...
    X