Hi, has anyone got a link to any more information of handling Public Events in Vegas please.
I have tried this in my Extension:
public void InitializeModule(Vegas vegas)
{
myVegas = vegas;
myVegas.TrackEventTimeChanged += handleEventEdgeMoved;
}
protected void handleEventEdgeMoved(Object sender, EventArgs args)
{
MessageBox.Show(myVegas.MainWindow, "Event Edged Moved", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
Which causes TWO problems.
1) It annoyingly pops up the message a several times when Vegas opens a project before we even do anything. Do we need to wait for something further to be initialised.
2) The Message pops up as soon as I click on an Event Edge to drag it, and therefore stops me dragging it, and does nothing more. How do I allow the Extension to allow the normal default action to be completed by the user first and then call my event handler afterwards.
p.s. Once working our handler will obviously do other stuff than just pop up a message, this was just for testing. We'll obviously wrap any required actions in a 'using' block too.
Any help or advice would be hugely appreciated please !!!