Question
How to make a similar panel like Links in InDesign (Problems in UnDo case of DocObserver).
I want to implement the similar operation as that of the Links panel Plugin.
Whenever a new image is placed on the document its should populate in the tree. And when it is deleted it should disappear.
I am able to do that by using a DocObserver, but the issue is that in when an object is placed on the document it populates on the tree but when Ctrl+Z is done it does not get disappear from the tree though it diappears from the document.
Similar is the case for the deletion of any image frame, when deleted it disappers from the tree but when it is undone it though come back on the document but does not appear on the tree view.
The code was working fine in CS2 as i was able to use the case
if((protocol == IID_IHIERARCHY)
(theChange == RemoveFromHierarchyCmdBoss || theChange == kAddToHierarchyCmdBoss )) in the update but in CS3 there is no UnDo support for coading so I am unable to trap that event in the update and remove the object from the tree.
But positively there would be some way to implement the required operation as it is done for the Links panel.
Plz anybody help me and kindly reply ASAP for that Advance thanks...
Whenever a new image is placed on the document its should populate in the tree. And when it is deleted it should disappear.
I am able to do that by using a DocObserver, but the issue is that in when an object is placed on the document it populates on the tree but when Ctrl+Z is done it does not get disappear from the tree though it diappears from the document.
Similar is the case for the deletion of any image frame, when deleted it disappers from the tree but when it is undone it though come back on the document but does not appear on the tree view.
The code was working fine in CS2 as i was able to use the case
if((protocol == IID_IHIERARCHY)
(theChange == RemoveFromHierarchyCmdBoss || theChange == kAddToHierarchyCmdBoss )) in the update but in CS3 there is no UnDo support for coading so I am unable to trap that event in the update and remove the object from the tree.
But positively there would be some way to implement the required operation as it is done for the Links panel.
Plz anybody help me and kindly reply ASAP for that Advance thanks...