Using ActiveSelectionObserver from a panel
Hi,
I want to get notified when the user sets the text curser into a text frame, while the panel of my plugin is open.
I have done a test with ActiveSelectionObserver added to a panel and that seems to work as expected.
The problem is that I cannot add the ActiveSelectionObserver to my existing panel, because it has a WidgetObserver that uses IID_IOBSERVER, and the ActiveSelectionObserver uses also IID_IOBSERVER. When both are present then InDesign does not load the plugin. The implementation IDs cannot be changed, because both have default implementations from the SDK. I have tried to add a second "dummy" panel, but when I set the property "visible" of the dummy panel to kFalse then the dummy panel is still visible, but the observer is no more notified. The best way would be to have an own implementation of the ActiveSelectionObserver with a different IID, but I don't know how to do this.
Additional information: I have just found in the file widgetid.h that there is an IID_ISELECTIONOBSERVER, so I will see if that helps.
Wolfgang