06-16-2023 02:52 AM
Hi Experts,
I would like to ask, it is such a small matter, can the name of the buttons "YES" and "NO" be changed in the dialog window?
I looked for it in SetCtrlAttribute and the attribute is available as ATTR_LABEL_TEXT, but I can't find the CONTROL ID anymore.
I can do it another way by creating a new UIR to close the window, but ConfirmPopup would be faster and easier.
Thank you for answer.
This doesn't work:
SetCtrlAttribute(panel, PANEL_CONFIRM_YES, ATTR_LABEL_TEXT, "Ano");
SetCtrlAttribute(panel, PANEL_CONFIRM_NO, ATTR_LABEL_TEXT, "Ne");
Solved! Go to Solution.
06-16-2023 03:23 AM - edited 06-16-2023 03:24 AM
This is not as easy as you can imagine!
System popups use texts taken from the RTE message file and cannot be customized the way you are trying to. The RTE message file can be translated to localize messages to another language following the steps described in this guide: Translating the Message File
It is a task that I never attempted due to its complexity and the availability more feasible alternatives.
If you want to have a localized substitute of ConfirmPopup you can use GenericMessagePopup () customizing it to meet your needs.
06-16-2023 03:34 AM - edited 06-16-2023 03:45 AM
I understand, I thought it probably wouldn't work, it's not that important, I just wondered if it wouldn't work somehow and obviously probably not.
I'll create a custom window for it.
EDIT: I used the GenericMessagePopup() function and it works pretty much exactly the same.
Thank you for your response.