DotNet 4.8.1 build of DotNetBar

This commit is contained in:
2025-02-07 10:35:23 -05:00
parent 33439b63a0
commit 6b0a5d60f4
2609 changed files with 989814 additions and 7 deletions

View File

@@ -0,0 +1,43 @@
using System;
using System.Text;
using System.Drawing;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents ribbon overflow button.
/// </summary>
internal class RibbonOverflowButtonItem : ButtonItem
{
/// <summary>
/// Gets or sets the ribbon bar control overflow button is displayed on.
/// </summary>
public RibbonBar RibbonBar = null;
protected override void OnCommandChanged()
{
}
protected override void OnExternalSizeChange()
{
base.OnExternalSizeChange();
AdjustSubItemsRect();
}
public override void RecalcSize()
{
base.RecalcSize();
AdjustSubItemsRect();
}
private void AdjustSubItemsRect()
{
Rectangle r = this.SubItemsRect;
if (!r.IsEmpty)
{
r.Y += 8;
r.Height -= 4;
this.SubItemsRect = r;
}
}
}
}