ArcFM Engine Developer Guide
DevDockableWindow.cs

Resource Center Home

Dockable Window Pane Developer Sample (C#)

DevDockableWindow.cs

Copy Code
using System.Drawing;

namespace Miner.DeveloperSamples.Engine
{
 public class DevDockableWindow : Miner.Windows.Docking.DockControl
 {
  #region Required Form Designer variables
  private System.Windows.Forms.GroupBox groupBox1;
  /// <summary> 
  /// Required designer variable.
  /// </summary>
  private System.ComponentModel.Container components = null;
  #endregion
  //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
  
  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 );
  }
  #region Component Designer generated code
  /// <summary> 
  /// Required method for Designer support - do not modify 
  /// the contents of this method with the code editor.
  /// </summary>
  private void InitializeComponent()
  {
   this.groupBox1 = new System.Windows.Forms.GroupBox();
   this.SuspendLayout();
   // 
   // groupBox1
   // 
   this.groupBox1.Location = new System.Drawing.Point(16, 16);
   this.groupBox1.Name = "groupBox1";
   this.groupBox1.Size = new System.Drawing.Size(136, 456);
   this.groupBox1.TabIndex = 0;
   this.groupBox1.TabStop = false;
   this.groupBox1.Text = "Dock";
   // 
   // DockableWindow
   // 
   this.BackColor = System.Drawing.Color.CornflowerBlue;
   this.Controls.Add(this.groupBox1);
   this.ForeColor = System.Drawing.Color.White;
   this.Name = "DockableWindow";
   this.Size = new System.Drawing.Size(168, 480);
   this.ResumeLayout(false);
  }
  #endregion
 }
}

 

 

 

 


Send Comment to ArcFMdocumentation@schneider-electric.com