I have some strategy properties that are not compatible with other properties and want to prevent the strategy from starting when the "OK" or "Apply" button is selected and show a message window stating the conflict.
I found "NTMessageBoxSimple.Show" and CloseStrategy.
The problem is when to perform the property check and call the two functions.
Every OnStateChange event I tried had problems.
Calling it on the OnFirstBarUpdate did not show the message box.
Can you advise?
Another question, is there a solution to have all the strategy property fields collapsed when the window is opened? I assume a template would work but, was looking for a configuration option.
Finally, why is State == State.Configure called in some instances, multiple times?
Help has "This state is called only once for the life of the object."
I put a print in the event and the event can be called 1 - 4 times when the "OK" or "Apply" button is selected
Cheers,
Mark

Comment