LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Minimizing panels

Solved!
Go to solution

Hey all, I need your help again,

 

in my application, there is a time I'm using a second panel aside the main panel.

If I minimize the main / second panel while the other is visible I can never load it up, it's like the icon on the task bar is affecting only the one panel that is visible.

 

Is there a way to solve it?

Thanks is advance,

AJ

----------------------------
Amit Joseph,
Software Engineer
0 Kudos
Message 1 of 4
(4,289 Views)

I am not definitely sure that I understand your question but may be setting the panel attribute ATTR_HAS_TASKBAR_BUTTON helps: This attribute specifies whether the panel has its own button on the taskbar

Message 2 of 4
(4,287 Views)

First of all, it does helps...

I found out the real problem.

 

as for now, I'm using a main panel for my app,

at some time, the user click a button and another Panel load up and become visible.

if for some reason the user minimized the main panel while the other is visiable, there was no way he could bring the main panel up again, the task bar icon would affect only the other panel.

 

now,

after using this attribute, I found out that the minimize button, minimizing the whole window of CVI, and that's why it affect only one of them,

so I tried to use this attribute with the main panel, and it kinda work 😕

 

I've attached a pic of the task bar after I minimize the main panel.

 

in the pic you'll see that there are 3 minimized screens,

1) titled NGACMI (on the left) is the CVI window.

2) in the middle - is the main panel

3) on the right - is the other panel.

 

 

----------------------------
Amit Joseph,
Software Engineer
0 Kudos
Message 3 of 4
(4,281 Views)
Solution
Accepted by topic author Amit_J

Amit,

 

The first thing you have to decide is whether you want each panel to have its own button in the taskbar. If the answer is yes, then you should enable the ATTR_HAS_TASKBAR_BUTTON panel attribute, as Wolfgang suggested, and disable the ATTR_TASKBAR_BUTTON_VISIBLE system attribute, so that the application as a whole doesn't also have a taskbar button.

 

If the answer is no, then you should enable the ATTR_TASKBAR_BUTTON_VISIBLE system attribute and disable the individual ATTR_HAS_TASKBAR_BUTTON panel attributes.

 

The next thing to keep in mind, even if you choose to have a single button for the application, is that panels can be minimized without the application itself being minimized. CVI only minimizes the application when the last panel is minimized. In your initial configuration, you were minimizing only one panel. When you do this, you cannot use the unminimized application's button to restore the individual panel that had been minimized. However, you can still restore the minimized panel: hover over the application's button, wait for the panel's button to appear above it, then right-click on it and select "Unminimize...":

 

 

minimize.png

 

Another option that you have is to designate one of your panels to be the "main panel" so that when you minimize this panel, CVI minimizes the application as well. You can achieve this by enabling the ATTR_MINIMIZE_OTHER_PANELS panel attribute on the main panel. If you do this, all other panels will effectively be minimized when you minimize the main panel. And you can restore them all at once by using the application's task bar button directly.

 

Luis

Message 4 of 4
(4,251 Views)