Example #1
0
 public RibbonComboBox()
 {
     _dropDownItems = new RibbonItemCollection();
     _dropDownItems.SetOwnerItem(this);
     _dropDownVisible      = false;
     AllowTextEdit         = true;
     _iconsBar             = true;
     _dropDownMaxHeight    = 0;
     _disableTextboxCursor = true;
 }
Example #2
0
 /// <summary>
 /// Creates a new button
 /// </summary>
 /// <param name="image">Image of the button (32 x 32 suggested)</param>
 /// <param name="smallImage">Image of the button when in medium of compact mode (16 x 16 suggested)</param>
 /// <param name="style">Style of the button</param>
 /// <param name="text">Text of the button</param>
 public RibbonButton()
 {
     _dropDownItems = new RibbonItemCollection();
     _dropDownItems.SetOwnerItem(this);
     _dropDownArrowSize = new Size(5, 3);
     _dropDownMargin    = new Padding(6);
     Image      = CreateImage(32);
     SmallImage = CreateImage(16);
     _iconsBar  = true;
 }
Example #3
0
        public RibbonButtonList()
        {
            _buttons       = new RibbonButtonCollection(this);
            _dropDownItems = new RibbonItemCollection();
            _dropDownItems.SetOwnerItem(this);

            _controlButtonsWidth  = 16;
            _itemsInLargeMode     = 7;
            _itemsInMediumMode    = 3;
            _ItemsInDropwDownMode = new Size(7, 5);
            _buttonsSizeMode      = RibbonElementSizeMode.Large;
            _scrollType           = ListScrollType.UpDownButtons;
        }
 /// <summary>
 /// Creates a new button
 /// </summary>
 /// <param name="image">Image of the button (32 x 32 suggested)</param>
 /// <param name="smallImage">Image of the button when in medium of compact mode (16 x 16 suggested)</param>
 /// <param name="style">Style of the button</param>
 /// <param name="text">Text of the button</param>
 public RibbonButton()
 {
     _style = RibbonButtonStyle.Normal;
     _dropDownArrowDirection = RibbonArrowDirection.Down;
     _assignedHandlers       = new Set <RibbonItem>();
     DropDownItems           = new RibbonItemCollection();
     DropDownItems.SetOwnerItem(this);
     _dropDownArrowSize = new Size(5, 3);
     _dropDownMargin    = new Padding(6);
     Image                = CreateImage(32);
     SmallImage           = CreateImage(16);
     DrawDropDownIconsBar = true;
 }