LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ConfirmPopup change yes/no

Solved!
Go to solution

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");

0 Kudos
Message 1 of 3
(1,562 Views)
Solution
Accepted by topic author MajklS

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.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(1,547 Views)

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.

0 Kudos
Message 3 of 3
(1,539 Views)