0 Replies Latest reply on Feb 24, 2014 7:51 AM by Matěj Nevěřil

    Problems with dockable dialog window

    Matěj Nevěřil


      we are facing below described problem. Could you please advice us how to solve it?


      1) I create IDockableWindowDef in .net c# (Esri sample code).
      2) I catch selection changed in method OnCreate

      void IDockableWindowDef.OnCreate(object hook)
        m_application = hook as IApplication;

        IMxDocument mxDoc = (IMxDocument)m_application.Document;
        IActiveViewEvents_Event activeViewEvent = (IActiveViewEvents_Event)mxDoc.ActiveView;
        activeViewEvent.SelectionChanged += new IActiveViewEvents_SelectionChangedEventHandler(OnSelectionChanged);

      3) I try use selected features from "FeSelTopLevel" object

      void OnSelectionChanged()
        IExtension m_pSelectionTab = m_application.FindExtensionByName("FeSelTopLevel");
        ID8List m_pSelectionList = (ID8List)m_pSelectionTab;


      But selected features in
      m_pSelectionList are correct after second graphic selection of same area.

      Thank you in advance.


      Best regards,

      Matej N.