在痕迹导航栏中显示公司名称,而不是数据区域



我只想在 ax2012 的面包屑栏中显示公司名称。

是否可以显示名称而不是数据区域 ID ?

作为一种解决方法,您可以隐藏 dataAreaId 并在状态栏中显示自定义文本

static void statusLineText(Args _args)
{
    str     companyName = CompanyInfo::find().Name;
    ;
    xUserInfo::statusLine_CustomText(true);
    infolog.writeCustomStatlineItem(companyName);
}

您还可以在标题栏中显示公司名称。在 Info 类中修改工作区窗口创建方法:

void workspaceWindowCreated(int _hWnd)
{
    super(_hWnd);
    WinAPI::setWindowText(_hWnd, strFmt("%1 - %2", curext(), xDataArea::find(curext()).name));
}

最新更新