Page 1 of 1

Plugin does not loop

PostPosted: Thu Apr 26, 2018 7:49 pm
by saslanis
Please help.

I try to check on the test plugin.

I find that the first time i open it it displays the X,Y,Z.
When i close it and reopen i do not get values but "labelX" etc.. the default values of the controls.

I am definitely sure that the "Loop_event" is only run once and does not loop. I have the same behaviour in other plugin i try to make where things are even worst , it seems that it does not run "Loop_event" at all...

any help is appreciated

Re: Plugin does not loop

PostPosted: Thu Apr 26, 2018 8:22 pm
by saslanis
So .. i was wrong
The test plugin loops, i added a ocunter that is shown correctly. Yet on close and reopen it does not start again. I checked the code better and show that this is normal as closing the form stops the loop.

Ok that was solved.
I still can't understand why in my plugin the loop_event is not called!

Re: Plugin does not loop

PostPosted: Thu Apr 26, 2018 9:19 pm
by dezsoe
In the PluginForm_Load function copy this line:

Code: Select all
Pluginmain.loopstop = false;

When you close the form this variable is set to true and the Loop_event checks this before executing.