在我的表单中,我在表单的 init 方法中更新了一些按钮的标签和帮助文本,表单标签已更新,但帮助文本仍未更新,当我单击该按钮时,它显示更新的帮助文本。
我试过 element.lock/unlock 但没有运气。
下面是我在init中的代码:
if (element.args().menuItemName() == menuitemDisplayStr(PhcPurchRFQCaseTableForNew) || PhcpurchRFQCaseTableRec.PhcIsInvitationToBid == NoYes::Yes
|| element.args().menuItemName() == menuitemDisplayStr(PhcPurchRFQCaseTableListPageAction))
{
purchRFQCaseTableForm.parmPhcIsInvitationToBid(NoYes::Yes);
_PhcIsInvitationToBid = NoYes::Yes;
element.PhcUpdateDesignLabels(); // this is to update labels
}
以下是方法:
public void PhcUpdateDesignLabels()
{
this.lockWindowUpdate(true);
HeaderGeneral.caption("@PHC204");
HeaderLinesGrid.caption("@PHC205");
NewCommandButton.text("@PHC173");
NewCommandButton.helpText("@PHC157");
PurchRFQConfigReply1.text("@PHC196");
PurchRFQConfigReply1.helpText("@PHC175");
RFQJournalMenuItemButton.text("@PHC195");
RFQJournalMenuItemButton.helpText("@PHC177");
RFQInfo.caption("@PHC206");
QouteActionPaneTab.caption("@PHC180");
PurchRFQTable_RFQId.label("@PHC173");
RFQInfo_PhcQuotationType.label("@PHC250");
CopyFromMenuItemButton.helpText("@PHC262");
SendMenuItemButton.helpText("@PHC263");
EnterReplyMenuItemButton.helpText("@PHC264");
CompareRepliesMenuItemButton.helpText("@PHC251");
this.lockWindowUpdate(false);
}