Version: 10.2.1c and 10.2.1c SP3 |
ArcFM Engine Overview > Application Framework Overview > Custom Dockable Window Pane > Dockable Window Pane Code Sample |
This sample code demonstrates how to create a pane that may be added to another dockable window or left floating as a separate dockable window.
This sample requires installation of the ArcFM Solution Software Developer Kit (SDK). You may need to change the existing installation in Add/Remove Programs to add Developer Resources.
Product Availability: ArcFM Viewer for ArcGIS Engine, Responder
References: Miner.Windows
A using statement is required for Miner.Windows. Docking.DockControl.
Custom panes derive from DockControl.
Dockable Window Pane |
Copy Code
|
---|---|
using System; using System.IO; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Data; using System.Windows.Forms; using System.Runtime.Serialization; using Miner.Windows; using Miner.Windows.Docking; namespace Miner.DeveloperSamples.Engine { /// <summary> /// Summary description for DockableWindow. /// </summary> //1 public class DevDockableWindow : Miner.Windows.Docking.DockControl { /// Required Form Designer variables //Five constructors available: //base(key) //base(key, caption) //base(key, caption, text) //base(key, caption, bitmap) //base(key, caption, text, bitmap) //Where: //key = unique identifier for the control //caption = caption on upper title bar //text = text on lower tab when grouped //bitmap = bitmap that appears on tab when grouped //2 public DevDockableWindow() : base("DevDockableWindow") { #region Windows.Forms Designer code // This call is required by the Windows.Forms Form Designer. InitializeComponent(); #endregion // TODO: Add any initialization after the InitializeComponent call //Items not passed into the constructor directly can be set here base.Caption = "Upper Caption"; base.TabText = "Lower Tab Text"; base.TabImage = new Bitmap(GetType().Assembly.GetManifestResourceStream (GetType().Namespace + ".Resources.Sample.bmp")); } /// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if(components != null) { components.Dispose(); } } base.Dispose( disposing ); } |