Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I've created a DockableWindow in my Add-In (vs 2010, c#, arcobjects 10 sp2) and the esri config was updated with the following:

<DockableWindows>
    <DockableWindow id="CTArcMapAddin_AreasDockWindow" class="AreasDockWindow+AreasDockWindowImpl" caption="Areas" image="Images\AreasDockWindow.png">
      <InitialPlacement height="300" width="250" state="unpinned" position="left" />
    </DockableWindow>
  </DockableWindows>

I run the Add-In and the dockable window shows up on the left side...

Then when changing the "position" value to "right" and running the addin again it's still positioned to the left...why does that change not show through...a bug maybe?

share|improve this question
    
Are you restarting ArcMap between the builds? If I'm not mistaken, you have to shutdown and restart ArcMap between the builds so it takes the changes. –  Chad Cooper Sep 27 '11 at 12:35
    
@Chad: Yes restarting between builds... –  Claus_L Sep 27 '11 at 12:54

1 Answer 1

up vote 2 down vote accepted

On my machine when arcmap shuts down it writes dockable window locations to HKEY_CURRENT_USER\Software\ESRI\Desktop10.0\ArcMap\DockingPaneLayouts\panestate\Pane-XX where XX is some sequence number.

I don't see an easy way to find the registry path without iterating through all the subfolders under panestate. Once you find it though, I suppose you could clear it so it doesn't override the positions in your config file.

share|improve this answer
    
Thanks Kirk, I suppose I could do that...still think it's a bug tho... –  Claus_L Sep 28 '11 at 6:10
    
I think Esri would need an attribute on the DockableWindow element in the config, something like overrideregistry=true. There are probably some users who want the dockablewindow to remain where they placed it the last time they used arcmap. –  Kirk Kuykendall Sep 28 '11 at 17:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.