Ejemplo n.º 1
0
        //---------------------------------------------------------------------------------
        private void FormContainer_ResizeEnd(object sender, EventArgs e)
        {
            _UserMove = false;
            DockStyle dock = ControlContainerInterfaceList.pickAnchor(out ControlContainerInterface container);

            ControlContainerInterfaceList.hideAnchors();

            if (container == null || dock == DockStyle.None)
            {
                return;
            }

            if (dock != DockStyle.Fill)
            {
                container = container.Split(dock);
            }

            List <GuiControlInterface> allControls = GetAllControl();

            foreach (GuiControlInterface tc in allControls)
            {
                container.Add(tc);
            }
            FormContainer.UpdateName(container.GetControl());

            Close();
        }
Ejemplo n.º 2
0
        //-------------------------------------------------------------------
        public ControlContainerTabs()
        {
            InitializeComponent();

            BorderStyle = BorderStyle.FixedSingle;
            Dock        = DockStyle.Fill;

            ControlContainerInterfaceList.register(this);
        }
Ejemplo n.º 3
0
        protected override void OnMove(EventArgs e)
        {
            if (!_UserMove)
            {
                return;
            }
            if (IsDisposed)
            {
                return;
            }
            ControlContainerInterface interf = ControlContainerInterfaceList.getUnderMouse(null);

            ControlContainerInterfaceList.showAnchors(interf);
            ControlContainerInterfaceList.updateAnchors();
            base.OnMove(e);
        }