示例#1
0
        void MoveBar(DockToolbar bar, int x, int row, bool setAnchorOffset)
        {
            int rt = GetRowTop(row);

            bar.DockRow    = row;
            bar.DockOffset = x;

            if (bar.Floating)
            {
                FloatingDock win = bar.FloatingDock;
                win.Detach();
                win.Destroy();

                InternalAdd(bar);
                Put(bar, x, rt);
                SortBars();
                ResetAnchorOffsets(row);
            }
            else
            {
                if (setAnchorOffset)
                {
                    ResetAnchorOffsets(row);
                }

                InternalMove(bar, x, rt, true);
            }
        }
示例#2
0
        internal void FloatBar(DockToolbar bar, Orientation orientation, int x, int y)
        {
            FloatingDock fdock = new FloatingDock(this);

            fdock.Move(x, y);
            bar.ResetSize();
            fdock.Attach(bar);
            bar.Orientation = orientation;
        }
示例#3
0
		internal void FloatBar (DockToolbar bar, Orientation orientation, int x, int y)
		{
			FloatingDock fdock = new FloatingDock (this);
			fdock.Move (x, y);
			bar.ResetSize ();
			fdock.Attach (bar);
			bar.Orientation = orientation;
		}