0
我使用DotNetBar
组件SuperTabControl
,我想显示上下文菜单如果用户右键单击一个选项卡,我发现下面的代码但问题是我的SuperTabControl
没有有GetTabRect功能。如何将上下文菜单添加到supertabControl
if (e.Button == MouseButtons.Right)
{
for (int i = 0; i < this.superTabControl1.Tabs.Count; ++i)
{
Rectangle r = this.superTabControl1.GetTabRect(i);
if (r.Contains(e.Location))
{
//display menu
}
}
}
听起来像是DevComponents的问题。 – DonBoitnott
也许,但我想我们可以在这里问任何问题:) –
我的观点是,你会得到更好的答案。他们做到了。在这里,你必须希望你遇到一个有经验的用户。但是,无论什么... – DonBoitnott