Hello all,
I try to write a script in JSL, which creates a new window that contains bivariate and changes the value of the line in the y-axis from a value of 5 to a value of 40 by pressing the OK button.
That is, the bivarite is displayed in a new window with a line of about 5, and after pressing the "OK" button, the line changes from 5 to 40, in the same window !!
I add the code I wrote, it brings up the new window and creates the bivariate with the line about 5 but can not change the value of the line by clicking.
Thanks to all the helpers!
TEST = open("C:\Users\shimi\Desktop\WP\TESTS\test refrsh.jmp","private");
TEST_V = 5;
New Window( "Inval example",
Button Box( "OK",
TEST_V=40;
g1 << inval; /* tell the oval to redraw */
g1 << update;
x = Tick Seconds();
While( Tick Seconds() - x < .5, 0 /* delay without wait(.5) */ );
),
g1 =TEST << Bivariate(
Y( :nean ),
X( :time ),
SendToReport(
Dispatch(
{},
"2",
ScaleBox,
{Add Ref Line( TEST_V, "Solid", "Purple", "TEST", 2 )}
)
)
)
);