Sample - Dockable Window

Version 2

    Versions: 9.3.1 - current

    Product Availability: ArcFM Engine

    This code sample illustrates how to create a custom pane (or tab) for the Table of Contents dockable window. The ArcFM Viewer user interface allows the user to easily add panes to the Table of Contents dockable window (see Using ArcFM Viewer for ArcGIS Engine online help).

    How to Implement:

    1. You may modify the code sample. This step is not required.
    2. Build the solution.
    3. Copy the DLL to the ArcFM Solution\bin directory.
    4. Open the ArcFM Engine Administrator and select the Layout and Licenses tab.
    5. Click the Dockable Windows node in the tree at the left, then click the Add button next to the Loaded Components column.
    6. Browse to the DLL you just compiled (e.g., ArcFMViewerEngineDockWindow.dll) and click Open.
    7. Select DevDockableWindow from the list of commands. Click Add.
    8. Click OK in the ArcFM Engine Administrator.

    How to Use:

    To add the dockable window to the user interface, select View > Upper Caption. The dockable window will appear in the top left corner. You can adjust its size and placement in the user interface.



    All of the files shown below are required for the project to compile successfully.


    ArcFMViewerEngineDockableWindow.slnC# solution containing the dockable window pane code sample for ArcFM Viewer for ArcGIS Engine
    ArcFMViewerEngineDockableWindow.csprojC# project containing the code to generate a custom dockable window pane object
    DevDockableWindow.csClass module that contains the dockable window pane form