locked
Project Professional 2010 Addin RRS feed

  • Question

  •  

    Hello,

    I have been developing an addin for MSP 2010 and I ran into the following issue.

    MSP 2010 doesn't send an event to addin when user drags tasks in GanttView Window.

    I mean when user selects the task row in GanttView and then drags it up or down and then releases. After that designated task changes the position and ID(uniq id stays the same) and i can't handle this in my addin. i need to add some restriction on task movement...

    thanks in advance.

     

    Saturday, March 27, 2010 7:42 PM

All replies

  • Hi - which events are you listening on?...pc
    Monday, March 29, 2010 3:39 AM
  • Actually the question is what events can give me this information....?

    anyway here is the events that i am currently listening:

     NewProject 

     ProjectBeforeAssignmentChange 

     ProjectBeforeTaskChange 

     WindowSelectionChange 

    ProjectTaskNew 

    ProjectBeforeTaskNew 

    ProjectBeforeSave 

    ProjectAfterSave 

    ProjectBeforeTaskDelete 

    WindowActivate 

    ProjectBeforeClose2 

    ProjectCalculate 

    WindowDeactivate 

     WindowSelectionChange 

    Monday, March 29, 2010 5:42 PM
  • Hi,

    The event:

    this.Application.ActiveProject.Change
    


    Is fired on every change, so also on the drag-drop. You have to create your own registration to detect what has been changed this way.

    For example: by always filling one of the custom fields with the latest WBS to detect a move, you have the hook you're looking for.


    Regards, J
    Tuesday, August 9, 2011 7:53 AM