private int GetHeight()
        {
            int height = 0;

            if (Parent != null)
            {
                foreach (Control cl in Parent.Controls)
                {
                    StiToolBar tb = cl as StiToolBar;

                    if (tb != null && tb.Visible && tb.Bottom > height)
                    {
                        height = tb.Bottom;
                    }
                }
            }

            return(height);
        }
        private int GetFreePos(int x, int y)
        {
            int pos = x;

            if (Parent != null)
            {
                foreach (Control cl in Parent.Controls)
                {
                    if (cl != this)
                    {
                        StiToolBar tb = cl as StiToolBar;

                        if (tb != null && tb.Visible && tb.Top == y && x >= tb.Left && pos < tb.Right)
                        {
                            pos = tb.Right;
                        }
                    }
                }
            }

            return(pos);
        }