LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Minimize application bug

Hi folks!

Sometimes, when I minimize my application, it does not maximize again. Sometimes, it occurs when I use alt+tab to change the main application or when I click on "Show Desktop" button.

Is it an CVI bug?

Thank you in advance.
Gustavo
0 Kudos
Message 1 of 4
(3,685 Views)
Hi Gustavo,

If you can provide me with some sample application or steps that reproduces the behavior, I can tell you if its a bug or not. You may want to read Luis's response to a similar issues posted here to see if that applies to you.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 4
(3,683 Views)
It seems the same problem, but I am using CVI 8.1.1

Do you know if I can do someting similar to the 3rd option that Luis describes?

Thank you
0 Kudos
Message 3 of 4
(3,680 Views)

Hi Gustavo

 

I've had a similar problem for ages (I'm using CVI 8.0.1, but the problem was already there with 5.5 AFAIR): each time I minimized my app (with the minimize button, or with the WIN-M /WIN-D key), I couldn't restore it. If I tried to restore it with a left click on the taskbar or with Alt-Tab, the application didn't appear again and I had to kill it.

 

I've just found the reason why this morning. It is linked to the fact that my application was starting up maximized. Without this option, the problem wasn't there.

 

The solution was then to put the line

 

    SetPanelAttribute (mainwindow, ATTR_WINDOW_ZOOM, VAL_MAXIMIZE);

 

 after the line  

 

    DisplayPanel (mainwindow);

 

and not before, as it was until this morning. Since then, minimizing works at once.. :smileyhappy:

 

I guess it's a bug of CVI but I can live with it now. 😛

 

Best Regards

 

   Yves

 

 

0 Kudos
Message 4 of 4
(3,480 Views)