using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace DockableUI
{
    public partial class DockContainer : UserControl
    {
        public DockContainer()
        {
            InitializeComponent();
            this.BackColor = SystemColors.AppWorkspace;
            this.ContainerLeft.AssignedSplitter = splitterLeft;
            this.ContainerRight.AssignedSplitter = splitterRight;
            this.ContainerBottom.AssignedSplitter = splitterBottom;
        }

        public override void ResetBackColor()
        {
            BackColor = SystemColors.AppWorkspace;
        }

        [DefaultValue(typeof(Color), "AppWorkspace")]
        public override Color BackColor
        {
            get { return base.BackColor; }
            set { base.BackColor = value; }
        }

        //internal DockedFormsContainer _getDfcAtCursor()
        //{
        //    return this.GetChildAtPoint(this.PointToClient(Cursor.Position)) as DockedFormsContainer;
        //}
    }
}
