示例#1
0
 /// <summary>
 /// Returns copy of DisplayMoreItem item
 /// </summary>
 public override BaseItem Copy()
 {
     QatOverflowItem objCopy = new QatOverflowItem();
     this.CopyToItem(objCopy);
     return objCopy;
 }
示例#2
0
 public static DevComponents.DotNetBar.Rendering.QatOverflowPainter CreateQatOverflowItemPainter(QatOverflowItem ribbonQatOverflowItem)
 {
     return m_Office2007QatOverflowPainter;
 }
 /// <summary>
 /// Creates new instance of the object and initializes it with default values.
 /// </summary>
 /// <param name="overflowItem">Reference to the overflow item being rendered.</param>
 /// <param name="g">Reference to the graphics object.</param>
 public QatOverflowItemRendererEventArgs(QatOverflowItem overflowItem, Graphics g)
 {
     this.OverflowItem = overflowItem;
     this.Graphics = g;
 }
示例#4
0
        protected override void CreateMoreItemsButton(bool isRightToLeft)
        {
            if (m_MoreItems == null)
            {
                m_MoreItems = new QatOverflowItem();
                m_MoreItems.Style = m_Style;
                m_MoreItems.SetParent(this);
                m_MoreItems.ThemeAware = this.ThemeAware;
            }
            if (this.MoreItemsOnMenu)
                m_MoreItems.PopupType = ePopupType.Menu;
            else
                m_MoreItems.PopupType = ePopupType.ToolBar;
            m_MoreItems.Orientation = m_Orientation;
            m_MoreItems.Displayed = true;

            if (m_Orientation == eOrientation.Vertical)
            {
                m_MoreItems.WidthInternal = m_Rect.Width - (m_PaddingLeft + m_PaddingRight);
                m_MoreItems.RecalcSize();
            }
            else
            {
                m_MoreItems.HeightInternal = m_Rect.Height - (m_PaddingTop + m_PaddingBottom);
                m_MoreItems.RecalcSize();
            }

            Point loc = GetMoreItemsLocation(isRightToLeft);
            m_MoreItems.LeftInternal = loc.X;
            m_MoreItems.TopInternal = loc.Y;
        }