Select to view content in your preferred language

IDockableWindowDef Caption property

634
1
03-03-2011 06:32 PM
GagagDa_Morvi
Emerging Contributor
I am seeing a strange behavior with the Caption property of IDockableWindowDef. I have implemented IDockableWindowDef. I notice that the Caption of the window doesn't change even if I return a new value for the caption from the implementation. I have to unregister the dll, run ArcMap, re-register the dll, and then run ArcMap again - then only I see that the new caption is displayed in the caption area of the dockable window. I place a break point in the Caption property implementation of my class, and I see that the break point is only hit the very first time the ArcMap is run after registering the dll. After that if I change the Caption value in the code, the break point is never hit again unless I carry out the above steps I listed. Can anyone explain this? Am I missing some step or doing something wrong?
0 Kudos
1 Reply
GagagDa_Morvi
Emerging Contributor
I am seeing a strange behavior with the Caption property of IDockableWindowDef. I have implemented IDockableWindowDef. I notice that the Caption of the window doesn't change even if I return a new value for the caption from the implementation. I have to unregister the dll, run ArcMap, re-register the dll, and then run ArcMap again - then only I see that the new caption is displayed in the caption area of the dockable window. I place a break point in the Caption property implementation of my class, and I see that the break point is only hit the very first time the ArcMap is run after registering the dll. After that if I change the Caption value in the code, the break point is never hit again unless I carry out the above steps I listed. Can anyone explain this? Am I missing some step or doing something wrong?

Anyone please? Can anyone confirm this behavior? Just change the Caption property, recompile the code and see if the Caption of the Dockable Window actually changes when it is shown. Thanks!
0 Kudos