Message 1 of 2
TriadEvents Bug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Anyone else out there using the TriadEvents? I can get the triad started and capture all the changes etc, but can't find a way to capture when the event triad is applied or cancelled. I can detect the termination of the of the overall interaction event which I think may be triggering ahead of the triad event and killing the event I want. Otherwise if anyone has a different way to see if the triad was cancelled by the user I would appreciate that. Below is a subset of the code I'm trying to use.
interaction = App.CommandManager.CreateInteractionEvents();
interaction.SelectionActive = false;
interaction.InteractionDisabled = true;
triadEvents = interaction.TriadEvents;
triadEvents.Repeat = true;
triadEvents.Enabled = true;
//These events don't appear to trigger
triadEvents.OnActivate += TriadEvents_OnActivate;
triadEvents.OnTerminate += TriadEvents_OnTerminate;
//Can hit everyone of these events
triadEvents.OnStartSequence += TriadEvents_OnStartSequence;
triadEvents.OnEndSequence += TriadEvents_OnEndSequence;
triadEvents.OnStartMove += TriadEvents_OnStartMove;
triadEvents.OnMove += TriadEvents_OnMove;
triadEvents.OnEndMove += TriadEvents_OnEndMove;
triadEvents.OnMoveTriadOnlyToggle += TriadEvents_OnMoveTriadOnlyToggle;
triadEvents.OnSegmentSelectionChange += TriadEvents_OnSegmentSelectionChange;
interaction.OnSuspend += Interaction_OnSuspend;
interaction.OnResume += Interaction_OnResume; ;
interaction.OnTerminate += Interaction_OnTerminate;
interaction.Start();