예제 #1
0
        internal void SetDockLocation(DockItem item, string placement)
        {
            bool           vis  = item.Visible;
            DockItemStatus stat = item.Status;

            item.ResetMode();
            container.Layout.RemoveItemRec(item);
            AddItemAtLocation(container.Layout, item, placement, vis, stat);
        }
예제 #2
0
        internal override void RestoreAllocation()
        {
            base.RestoreAllocation();
            item.UpdateVisibleStatus();

            if (Status == DockItemStatus.Floating)
            {
                item.SetFloatMode(floatRect);
            }
            else if (Status == DockItemStatus.AutoHide)
            {
                item.SetAutoHideMode(barDocPosition, GetAutoHideSize(barDocPosition));
            }
            else
            {
                item.ResetMode();
            }

            if (!visibleFlag)
            {
                item.HideWidget();
            }
        }
예제 #3
0
 internal void SetDockLocation(DockItem item, string placement)
 {
     bool vis = item.Visible;
     DockItemStatus stat = item.Status;
     item.ResetMode ();
     container.Layout.RemoveItemRec (item);
     AddItemAtLocation (container.Layout, item, placement, vis, stat);
 }