[Migrated content. Thread originally posted on 04 November 2005]
Is it possible as to send a terminate-event when using an active-x control.Some explanation.
When using a grid I can use the terminate-event. The program now become of the screen accept. This make it possible to do statements after the accept, instead of in the event-procedure. When modifying an control in the event-procedure (which creating new events) the behavior of other accepts (or the controls itself) sometimes looks unpredictable.
So I terminate the event and do the programming after the accept of the control.
When using an active-x control it fires many events for such a thing as (as example) a click.
So it can happen that I take action on an event, which even after it becomes other events from the first action. Also the actions I take can even fire new events. One of the problems is, that when is do an accept with exception-key in a new screen (by program call) this accept should return the value of the exception-key.
But sometimes I get in this called program an event (mgs-ax-event ?) and it does not return the exception-key value. So I lost the exception-key value (but not always).
So it looks less complex to terminate the event and do some programming out of the event procedure.
Is this possible or are there other tips.