コード例 #1
0
        public override void CreateButtons(TabButtons buttons, CustomHeaderButtonCollection userButtons)
        {
            if (this.keepButtons > 0)
            {
                return;
            }

            Buttons.Clear();
            if (TabViewInfo.AddActiveFilesButton)
            {
                this.Buttons.Add(CreateButton(TabButtonType.User));
            }
            if ((buttons & TabButtons.Prev) != 0)
            {
                this.Buttons.Add(CreateButton(TabButtonType.Prev));
            }
            if ((buttons & TabButtons.Next) != 0)
            {
                this.Buttons.Add(CreateButton(TabButtonType.Next));
            }
            if ((buttons & TabButtons.Close) != 0)
            {
                this.Buttons.Add(CreateButton(TabButtonType.Close));
            }
        }
コード例 #2
0
 public XtraTabPageDescendant()
 {
     customHeaderButtonsCore          = new CustomHeaderButtonCollection();
     CustomButtons.CollectionChanged += CustomButtons_CollectionChanged;
 }
 protected override void CreateButtonsCore(TabButtons buttons, CustomHeaderButtonCollection userButtons)
 {
     base.CreateButtonsCore(buttons, PageDescendant.CustomButtons);
 }