Exemplo n.º 1
0
        public ControlPanelGroup AddGroup(string caption, int image)
        {
            ControlPanelGroup group = new ControlPanelGroup(this, caption, image);

            m_GroupsDictionary.Add(caption, group);

            return(group);
        }
Exemplo n.º 2
0
        public ControlPanelGroup AddGroup(string caption, int image)
        {
            ControlPanelGroup group = new ControlPanelGroup(this, caption, image);

            m_GroupsDictionary.Add(caption, group);

            return group;
        }
Exemplo n.º 3
0
        private void xpPanelGroup_SizeChanged(object sender, EventArgs e)
        {
            ControlPanelGroup[] array = new ControlPanelGroup[m_GroupsDictionary.Values.Count];
            m_GroupsDictionary.Values.CopyTo(array, 0);
            ButtonBar xpBar = array[0].ButtonBar;

            int width = m_XPPanelGroup.Size.Width - 2 * m_XPPanelGroup.BorderMargin.Width - xpBar.Padding.Left - xpBar.Padding.Right;

            if (!m_XPPanelGroup.VerticalScroll.Visible)
            {
                width += SystemInformation.VerticalScrollBarWidth;
            }
            if (xpBar.ButtonWidth != width)
            {
                foreach (ControlPanelGroup group in m_GroupsDictionary.Values)
                {
                    group.ButtonBar.ButtonWidth = width;
                }
            }
        }
Exemplo n.º 4
0
 public ControlPanelItem(ControlPanelGroup group, string tag, int icon, string caption, string toolTip)
 {
     m_BarItem = CreateBarItem(group.ButtonBar, tag, icon, caption, toolTip);
 }
Exemplo n.º 5
0
 public ControlPanelGroup[] GetGroups()
 {
     ControlPanelGroup[] groups = new ControlPanelGroup[m_GroupsDictionary.Values.Count + 1];
     m_GroupsDictionary.Values.CopyTo(groups, 0);
     return(groups);
 }
Exemplo n.º 6
0
 public ControlPanelGroup[] GetGroups()
 {
     ControlPanelGroup[] groups = new ControlPanelGroup[m_GroupsDictionary.Values.Count + 1];
     m_GroupsDictionary.Values.CopyTo(groups, 0);
     return groups;
 }
Exemplo n.º 7
0
 public ControlPanelItem(ControlPanelGroup group, string tag, int icon, string caption, string toolTip)
 {
     m_BarItem = CreateBarItem(group.ButtonBar, tag, icon, caption, toolTip);
 }
Exemplo n.º 8
0
        private void xpPanelGroup_SizeChanged(object sender, EventArgs e)
        {
            ControlPanelGroup[] array = new ControlPanelGroup[m_GroupsDictionary.Values.Count];
            m_GroupsDictionary.Values.CopyTo(array, 0);
            ButtonBar xpBar = array[0].ButtonBar;

            int width = m_XPPanelGroup.Size.Width - 2 * m_XPPanelGroup.BorderMargin.Width - xpBar.Padding.Left - xpBar.Padding.Right;
            if (!m_XPPanelGroup.VerticalScroll.Visible)
                width += SystemInformation.VerticalScrollBarWidth;
            if (xpBar.ButtonWidth != width)
                foreach (ControlPanelGroup group in m_GroupsDictionary.Values)
                {
                    group.ButtonBar.ButtonWidth = width;
                }
        }