Hi,
With some searching on this forum and digging in the JMP scripting book, I've managed to mostly get my progress script working. The only thing I don't like is that the vertical (y) axis has numbers on it. Can I turn these off? I was not able to find a way to do this. Not sure if I should be using something other than a graph box() but my knowledge of this is fairly limited.
dlgStatus = new window("Conversion Progress",
dlg_gb = graph box(
Title ("Conversion Progress"),
FrameSize ( 200, 30),
xscale(0,100),
yscale(0, 1), // <---- how to turn off so i don't see the y axis values?
yaxis (show major ticks (0), show minor ticks (0)),
xname("% complete"),
yname("")
)
);
dlgStatus[FrameBox(1)] << Add Graphics Script({Fill Color("blue"),Rect(0,1,50,0,1)}); // 50% on a scale to 100% shown in the xscale above. does not get scaled to the pixel count in frame size()
dlgStatus[FrameBox(1)] << Add Graphics Script({Fill Color("blue"),Rect(0,1,75,0,1)}); // 75% on a scale to 100% shown in the xscale above.
// above is just a test. the 50 and 75 would be a loop index variable divided by loop count, in my real script. It would get executed once in each loop iteration.
dlgStatus << closewindow();
Thanks.