ArcFM Engine Overview > ArcFM Engine Developer Samples > Tabbed MDI Window |
Product Availability: ArcFM Engine
In ArcFM Viewer, the Data View tabs are part of a MDI window. The ArcFM Viewer user interface allows the user to easily add tabs to the Data View window (see Using ArcFM Viewer for ArcGIS Engine online help). This developer sample illustrates how to make a custom MDI window tab that displays a report.
Developer Sample: Developer Samples\Tabbed MDI Windows\C# - Tabbed MDI Windows\
How to Implement:
<MdiTab key="DevMDIWindow"> <MdiWindow type="Miner.DeveloperSamples.Engine.DevMDIWindow, ArcFMViewerEngineMDIWindow" > <CreateData> <Param type="System.String" value="DevMDIWindow" /> </CreateData> </MdiWindow> </MdiTab>
sample.custom.layout |
Copy Code
|
---|---|
<?xml version="1.0" encoding="us-ascii"?> <LayoutData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layoutFormat="2"> <MainWindow> <MdiTabManager> <MdiTabGroups> <MdiTabGroup> <MdiTabs> <MdiTab key="DevMDIWindow"> <MdiWindow type="Miner.DeveloperSamples.Engine.DevMDIWindow, ArcFMViewerEngineMDIWindow" > <CreateData> <Param type="System.String" value="DevMDIWindow" /> </CreateData> </MdiWindow> </MdiTab> </MdiTabs> </MdiTabGroup> </MdiTabGroups> </MdiTabManager> </MainWindow> </LayoutData> |
Additional Information:
Requires:
All of the files shown below are required for the project to compile successfully. Download these files from the ArcFM Solution Resource Center here.
File
Description
ArcFMViewerMdiTab.sln
C# solution containing the MDI Tab code sample for ArcFM Viewer for ArcGIS Engine
ArcFMViewerMdiTab.csproj
C# project containing the code to generate a custom MDI Tab object
DevMDIWindow.cs
(view code)Class module that contains the MDI window form
The following reference files are required for the project to compile successfully.
Miner.Windows
System
System.Drawing
System.Windows.Forms