LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Labwindows 8.5 - Window minimize problem

I am in trouble. I am using LabWindows 8.5 under Windows XP.

My application has many panels. When I minimize the main one, all others palnels are also minimized.

The main panel is setted by the command:
    SetPanelAttribute (panelHandle, ATTR_MINIMIZE_OTHER_PANELS, 1);

Sometimes, not always, when I try to maximize the main panel, only the sub-panels are maximized, so it is impossible to access the main window of my application.

I read some threads in the forum before, and some people asked for the unminimize button in task bar. People said that if I select this option I could choose the windows that I want to maximize, but this option doesn't appear to me. Some users also wrote about the different behaviour of Labwindows 8.1, but I think it is not the same problem.

Is there any way to force a panel handle when the user clicks over restore or maximize button on taskbar? Any others suggestions are welcome.

Regards.
Gustavo
0 Kudos
Message 1 of 17
(5,631 Views)
Hi all! Has someone any idea how to solve this issue? Anyone from NI?

The fact is that sometimes when I minimize my application, it is impossible to restore it. When I click the restore option on task bar menu, only the application sub panels appears. So, when it occurs, it is impossible to access the main panel, even if I try ALT+TAB command.

Is it a bug?

I looked out some conditions standard that it occurs, but I couldn't identify a specific situation.

Thank you in advance


Message Edited by Oliveira on 04-10-2008 03:47 PM
0 Kudos
Message 2 of 17
(5,594 Views)
Hi all!

There is a problem when I ,sometimes, try to maximize my application. I attach a print screen of it.

How can I fix it?

Thank you in advance.
0 Kudos
Message 3 of 17
(5,546 Views)
While there are a few details of your situation I don't follow, I do see an inconsistency similar to what you describe. 
 
I took my example app posted here and added the line:
SetPanelAttribute (panelHandle, ATTR_MINIMIZE_OTHER_PANELS, 1);
just before the DisplayPanel (panelHandle); statement, and tested a few cases:
 
1. Minimize app with just main panel open, then test left- and right- clicks on the task bar entry. Left click restores, right click gives "Restore" and "Unminimize" as options and they both work.
2. From main panel open the "other panel". With the "other panel" active, left click the main panel minimize bar. Then either:
(a) right-clicking on the task bar immediately restores the "other" panel, but not the main. (This seems strange.)
(b) left-clicking restores both, with main in front (which makes sense, since the main was made active by the click to minimize it).
 
Does 2a above fit your situation?
 
NI: Is 2a by deliberate design?
 
--Ian
(Vista & CVI 8.5)
 
 
0 Kudos
Message 4 of 17
(5,528 Views)
I also have the problem described in item 2A.

Regards.
Gustavo


Message Edited by Oliveira on 04-14-2008 10:39 AM
0 Kudos
Message 5 of 17
(5,524 Views)

Thanks for the detailed description of the symptom. I was able to reproduce it with Ian's test program.

2a is definitely not expected behavior. We'll be investigating this in the near future, and as soon as we have some information (including a possible workaround) I'll post a follow-up here.

Luis

0 Kudos
Message 6 of 17
(5,515 Views)
Another screen of the problem.

I minimized my application, and when I try to restore it, clicking on the task bar menu, any option appear. So, I have to restart the application, because there is no way to access it anymore.

Using CVI 8.5, Windows XP.

regards


Message Edited by Oliveira on 04-15-2008 03:51 PM
0 Kudos
Message 7 of 17
(5,472 Views)

Gustavo,

Can you describe the steps that you did to get into that state?

Luis

0 Kudos
Message 8 of 17
(5,432 Views)
The problem that you ask me to describe occurs sometimes, but I could not identify, until now, a pattern.

I guess that if I describe the characteristics of my application, it will help you.

There is a main window with many sub tabs. This main window has also 4 sub panels. In the tabs, I can create some tabs, controls and indicators dynamically. They are updated every time I receive an event.

Sometimes, also, when I click on the task bar menu in order to change the main program window, such as, look a sheet at excel, the CVI application still remains as a main application. I could note that the window bar turns gray, 2 sub panels disappear and the others don't disappear. This time is impossible to interact to the application. Only when I click on the task bar menu, over the CVI application button, I take back the control of the CVI application.

If I find a pattern, I will post here.

Regards


0 Kudos
Message 9 of 17
(5,425 Views)
Luis,

I mapped one of the problems.

If my CVI app is opened, and so, I click on Windows "Show Desktop" icon, my application does not maximize again. So I have to restart it.

Regards.
0 Kudos
Message 10 of 17
(5,355 Views)