Origin Version (Select Help-->About Origin): O7.5P
Operating System: W2k
Hi,
I am having a weird problem while running a timerproc. The proc defined in a worksheet window (in a button) is used to reload data (from path %l%k) into that worksheet (%m) every some seconds to display them:
def timerproc {
win -a %m;
open -w %l%k;
wks.col1.format=3;
};
These data get redisplayed automatically in some graphs also contained in the project. I also have some buttons on my graphs which move the scale around to zoom back and forward in the data.
Now the problem:
While the timer is running it occurs that all of Origin's userdefined buttons on my graphs and worksheets stop working in case I press a button right in the moment the timerproc acutally gets carried out.
Only hiding Origin's main window and maximizing it again restores the
button actions... Weird!
So I am afraid that the way my timerproc is written it is breakable due to selection of another active window! Is it possible? At the beginning of the proc I set the active window, but by pressing a button in a graph window a moment after the "win -a %m"-command it might happen that the script tries to execute one of the two following commands on the now active graph window, which might fail...
Is this so? I thought that these timerprocs are sort of isolated? Perhaps not?!
Marko