I've asked a related question a while back, and have made some progress, but still not quite where I need things to be. I am attempting to hook events related to modifications to project data, specifically when changing the custom properties of a rich project. Currently I am hooking AAHOOK_PROJECT_PROPERTY_DLG. It functions roughly as expected, with one glaring exception. I can't seem to trigger the hook if I have the Project properties dialog open and make a change to the rich project properties and then click Apply. This leaves the Project dialog open and no hooks (pre or post) are called. However, if I make a change to something like the Name and click Apply, the post hook is triggered, and again the dialog remains open. However, if I make changes to the rich project properties and click OK, the hook is triggered.
Is there another hook I should try, or another method of capturing the change to rich project properties when clicking the Apply button in the Project dialog?
have you tried AAHOOK_MODIFY_PROJECT? have you tried an Action hook for AAHOOK_PROJECT_PROPERTY_DLG to see what is passed for that?
I have tried AAHOOK_MODIFY_PROJECT, and in fact I think the may be the one should catch this but does not. It gets triggered if you use the Project->Rename command, or make changes in the Project property dialog, but suffers the same exception noted. Attempting an Action hook on AAHOOK_PROJECT_PROPERTY_DLG and AAHOOK_MODIFY_PROJECT makes no difference either - nothing seems "hook" clicking the Apply button on a Project dialog box when you make changes in the (rich project) Properties tab. Other tabs behave as expected to hooking on clicking the Apply button. I'm guessing maybe an oversight or a bug?
hopefully someone official will reply.