public ControlPanelGroup AddGroup(string caption, int image) { ControlPanelGroup group = new ControlPanelGroup(this, caption, image); m_GroupsDictionary.Add(caption, group); return(group); }
public ControlPanelGroup AddGroup(string caption, int image) { ControlPanelGroup group = new ControlPanelGroup(this, caption, image); m_GroupsDictionary.Add(caption, group); return group; }
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; } } }
public ControlPanelItem(ControlPanelGroup group, string tag, int icon, string caption, string toolTip) { m_BarItem = CreateBarItem(group.ButtonBar, tag, icon, caption, toolTip); }
public ControlPanelGroup[] GetGroups() { ControlPanelGroup[] groups = new ControlPanelGroup[m_GroupsDictionary.Values.Count + 1]; m_GroupsDictionary.Values.CopyTo(groups, 0); return(groups); }
public ControlPanelGroup[] GetGroups() { ControlPanelGroup[] groups = new ControlPanelGroup[m_GroupsDictionary.Values.Count + 1]; m_GroupsDictionary.Values.CopyTo(groups, 0); return groups; }
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; } }