Asked by:
Project Professional 2010 Addin

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.
All replies
-
-
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
- Proposed as answer by 111111111111111111Banned Saturday, May 1, 2010 7:11 AM
- Unproposed as answer by Brian Smith - MSFTMicrosoft employee Friday, July 2, 2010 10:14 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