-1

In my addin I'm using EA_OnNotifyContextItemModified() event to call my form, but each time element properties is modified it is called. So can I get to know whenOK_button in properties window is clicked so I can call my form.

public void EA_OnNotifyContextItemModified(EA.Repository Repository, string GUID, EA.ObjectType ot)
{
    // userForm();
}

thanks for any help.

LuckyLikey
  • 3,504
  • 1
  • 31
  • 54
anup
  • 1
  • 2

1 Answers1

0

Seems like there is no straightforward way to do this.

You can use EA_OnContextItemDoubleClicked to set status of "user in item edit window" and then process EA_OnNotifyContextItemModified() on whether the user has that status or not.

(however, there doesn't seem to be a way to detect if the user clicks cancel, so you have to find a way to reset the status if the user quits the element edit window)

The other solution i can think of is to make your own Element Edit window.

Mart10
  • 758
  • 3
  • 14