01-27-2012 09:15 AM
I have an application that transfers several files from a labwindows application to another application.
During the transfers, occationally one of the labels or buttons on the main panel disappears then reappears a few seconds later. When they disappear a white background is seen until the label or button reappears.
This only happens on the actual .exe file built. It does not happen while in debug or release mode while testing the app.
Does anyone know how to fix this?
Thanks!
John W.
01-30-2012 02:53 PM
Hi jwinterb,
What version of CVI are you using? How long does it run until this behavior occur? What version of the CVI Runtime Engine do you have? Does this happen on a clean machine with only the CVI Runtime Engine installed and any other necessary files? Let me know.
Regards,
Perry S.
01-31-2012 06:35 AM
Thanks for the reply,
I am using Labwindows/CVI Version 8.1.0 (271).
Where do I find the version for the Runtime Engine?
I am using the application on my work computer running Windows 20000/XP. Have not tried it on a cleaner PC. Not sure if we have one, but I can check.
It does not take long for the labels to blank out. Within a few seconds. But the labels will reappear once something happens within the application, like writing to the list box. But it will again disappear and reappear. A picture of my app is below. It is usually the label "PASS II IP" or the button "Program" that are affected.
Thanks!
JW
01-31-2012 07:33 AM
Here is a snapshot of when the label disappears. Label "PASS II IP" on left has been whited out. It will reappear when something gets written to the list box.
Thanks
JW
01-31-2012 09:37 AM
I was able to resolve the issue by making the Edit Strings and list box all in Indicator mode.
Now the only thing that happens when running is that the Title Bar will turn from Blue to Gray and back and forth.
I can live with that but it would be nice to understand why these things happen.
Thanks
JW
01-31-2012 11:06 AM
Depending on the version of Windows you are using and if you have selected to use Windows Style title bar or not, this is likely due to the panel becoming active or inactive. Blue will mean active and grey will mean inactive. Are you clicking on and off the panel when this occurs? Are you calling SetActivePanel( ) anywhere in your code? Based on your screenshot, it looks like the progress bar is a popup that is stealing the active panel attribute from the main panel. There can only be 1 active panel at a time. If the behavior is annoying, you can hide the title bar in the panel properties. Is the progress bar a popup (created using InstallPopup( ) ) or is it a floating panel (created using DisplayPanel( ) )? If it is modal, then there is nothing you can do because the modal panel has to be the active panel.
01-31-2012 12:47 PM
Thanks for the reply,
Yes I am calling InstallPopup for the progress bar. I'll try using using DisplayPanel instead.
It doesn't bother me that much. I was more concerned before when the list box and labels were being whited out, then I made them Indicators only.
Thanks!
JW