【发布时间】:2019-04-08 11:37:40
【问题描述】:
我正在使用 C# 插件开发 Enterprise Architect。我正在尝试检查加载项菜单项,并添加工具提示以显示有关该功能的信息。
我尝试了以下代码:
public void EA_GetMenuState(EA.Repository Repository, string Location, string MenuName, string ItemName, ref bool IsEnabled, ref bool IsChecked)
{
//Enables the menu if the project is open
if (IsProjectOpen(Repository))
{
IsEnabled = true;
if (ItemName.Equals("Help"))
{
//check the menu
IsChecked = true;
}
}
菜单项检查工作正常,但找不到向菜单添加工具提示的选项。
我参考了这个链接: https://sparxsystems.com/forums/smf/index.php?topic=4129.0 提到了工具提示的功能请求。
EA 12.1版本是否可以通过插件设置菜单工具提示?
【问题讨论】:
标签: menu tooltip enterprise-architect