LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

MessagePopup blank button

We are using a mix of CVI2009 and CVI2013 on Windows 7,8.

 

Since last few days in an inexplicable way perhaps linked to Windows or Ni update perfectly working  

   MessagePopup(const char *popupTitle, const char *messageString)

   ConfirmPopup(const char *popupTitle, const char *messageString);

 

instead of expected text draw blanks, like this:

blank.jpg

 

The work around was to reimplement function with Windows api.

I have updated latest CVI2013 runtime to no avail.

 

any suggestions will be welcome

-al

 

0 Kudos
Message 1 of 8
(6,208 Views)

Hi ael,

 

Has this implementation ever worked? Is there a reason that you are using both the MessagePopup and ConfirmPopup functions? It might be useful to take a look at this documentation to double check your syntax.

 

Regards,

 

 

Regards,

Kristen M

Automated Test Product Marketing Engineer
National Instruments
0 Kudos
Message 2 of 8
(6,160 Views)

Hello,

 

I have the same problem. The code:

 

MessagePopup ("TITLE", "TEXT");,

 

gives a popup butt there is no text on the OK button, it is blank. I have both labwindows 2010 and 2015 installed and I tried both versions and both with the same problem. And this problem did occur when I had only 2015 installed.

 

Best regards,

Christian G.

0 Kudos
Message 3 of 8
(5,091 Views)

Correction, the same problem occured when I had 2015 installed only. (Edited post above)

0 Kudos
Message 4 of 8
(5,089 Views)

Hi ChristianG*****,

 

In here I think  we would need to have a little bit more of context on what you are doing and how you are usinng the message popup, it looks like there might be something wrong on the way you are calling the function or some parameter not being passed correctly. In the following link you can find the help document for the MessagePopup funciton and also have a reference of some examples on how to use it in LabWindows/CVI 2015

 

Additionally you can use the GenericMessagePopup, where you can also customize the text inside the available buttons.

 

Hope that you can find this information helpful!

 

Regards,

Sil.VI
0 Kudos
Message 5 of 8
(5,052 Views)

Hello,

 

The code: MessagePopup("Test","Test"); gives a popup with a button with no text on it.

 

The code: GenericMessagePopup ("TEST","TEST","TEST",0,0,0,0,VAL_GENERIC_POPUP_BTN1,VAL_GENERIC_POPUP_BTN1,VAL_GENERIC_POPUP_BTN1,0); works fine.

 

Running the code on a computer with only LabWindows  2010 installed seems to work fine, but on mine with multiple versions installed of LabWindows it does not work.

 

I also created a new Worksspace with a new project, on my computer, with the code:

 

void main(void)
{
MessagePopup("TEST","TEST");
}

 

And it works just fine, a popup with a button and text on it!

 

If there is more context/information need please tell me and I will try to supply it.

 

 

Best regard,

Christian G.

0 Kudos
Message 6 of 8
(4,987 Views)

We got rid of the problem by unistalling everything and then only installing CVI 2010 and making sure no updates were applied to labwindows.

 

Best regards,

Christian G.

0 Kudos
Message 7 of 8
(4,964 Views)
Spoiler
If you are win10 system ,please remove thoes below files which are at C:\Windows\SysWOW64. and then remove all CVI revelent files and reinstall LabWindows/CVI
[微信图片_20230822160537.jpg

0 Kudos
Message 8 of 8
(1,210 Views)