Hi - I'm looking to build an addin that can register with a view window to be notified when its extent changes due to a user panning or zooming. Upon catching this event, I need to read the graphic elements that are shown in the view window after the extent change has occurred. From what I've been reading, it appears that if this can be done, it's likely only possible in C++ so I can switch to that language if that's the case.
Thanks,
Martin
I think mdlWindow_setFunction is what you want. This function can monitor all windows (all dialogs and views) events as below:
enum WindowModifyType { WINDOW_SHOWEVENT = 1, WINDOW_HIDEEVENT = 2, WINDOW_ORDEREVENT = 3, WINDOW_MOVEEVENT = 4, WINDOW_CHANGESCREENEVENT = 5, WINDOW_MINIMIZEEVENT = 6, };
Hi Yongan,
Thank you for the thought. However, I think that function is used for detecting changes to the Microsoft Window itself as opposed to a change in what portion of the model is shown in the view window as a result of the user performing a pan/zoom action in the view window.
View is a kind of Window. So this approach can really monitor view's pan (I verifeid this by programming).
For View update, I recommend you to call ViewCallback::SetUpdatePostFunction to monitor.
HI Yongan,
Thanks for further checking this out. I will try this out on my side.