LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Minimize / maximize CVI9.0.1 application.

i am using CVI9.0.1 application. After minimizing the complete application with [windows][m] keys, the application will show a completely random panel from the uir when being maximized again.

It seems that the  problem occurred when upgrading from cvi 6.0 to cvi 9.0.

I tested it on windows 2000, windows Xp (service pack 3) and on both OS the same 'problem' is shown.

 

I checked the forums but as far as I can tell, the bug did exist but should have been solved in cvi 9.0.

 

Regards

 

Leon FXC

0 Kudos
Message 1 of 5
(3,624 Views)

Dear Leon,

 

thank you so much for your post on our webforum. I'm sorry for our late response on your issue.

I tried to reproduce your issue but I can not reproduce this problem on a computer with Labwindows 9.0 and Windows XP (SP3). Do you see the problem with an example from the example finder? With the example from the example finder; can you give the steps to reproduce this?

I opened lgdemo.cws and did run it; windows [m] and then pressed the application in my task bar; it restored in exact the same format and on the same position when I minimized it. Also when I resized the window and repeated this the position and size are the same as before minimizing. I'm looking forward for your response,

 

Best regards,

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 2 of 5
(3,300 Views)

Dear Martijn

 

when you uncheck the auto center of the second panel (ATTRDEMO) you will see that after :

 

click control attributes in the mainpanel -> click next attribute in the control attribute panel -> [windows][m] to minimize, and then maximize the application again ,

 

the control attribute panel is now hidden behind the mainpanel.

 

In our case all panels have the same size (1024 x 768) so when this happens it is not clear anymore what was the active panel in which the operator was working.

In my application I have loaded about 20 panels (all at the same time, actually immediately at startup) . So I guess that when more panels are loaded in memory, it is even more confusing or unclear what happens.

 

Regards Leon

0 Kudos
Message 3 of 5
(3,286 Views)

Dear Leon,

 

thank you so much for your response. It is indeed true that this behaviour was different in CVI 6.0; before this version and the release after will show the main window in front. In version 6.0 there were some problems in how this was implemented that's why it was dropped after this release.

I found an example where the child window is alway on top of the parrent window, but you are not able to move it outside the parent window. It was based on this example.

 

Best regards,

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 4 of 5
(3,275 Views)

sorry, here the adjusted example made by a colleague,

Martijn S
Applications Engineer
NI Netherlands
0 Kudos
Message 5 of 5
(3,272 Views)