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); } }
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; }
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; }