LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Minimizing

Hello,

I have problems with minimizing window..
I need if I minimize window so as window has been minimzed into task bar. Now window is minimized apart task bar. (look to picture in Attachment)


Next if I use more panels into one...

like...
    errChk (panelHandle=LoadPanel(0,"Measuring.uir",PANEL))

    errChk (panel1Handle=LoadPanel(panelHandle,"Measuring.uir",PANEL_1));
    errChk (panel2Handle=LoadPanel(panelHandle,"Measuring.uir",PANEL_2));
    errChk (panel3Handle=LoadPanel(panelHandle,"Measuring.uir",PANEL_3));
    errChk (panel4Handle=LoadPanel(panelHandle,"Measuring.uir",PANEL_4));

and then if I double click to task bar to tab of my application so app is minimized, but when I try unminimize it.. Apllication never shows me. (But is still running)

I'm using LabWindows 8 on Windows XP SP2

Thank you for you request.
0 Kudos
Message 1 of 3
(3,196 Views)
Hello zabaq,
 
Since you're version 8.0, in order to minimize your button to the task bar you will need to enable the "Has Taskbar Button" in your panel (you can do this in the UI editor, by editing the panel, clicking on "Other Attributes" and then enabling the checkbox.). Once you do that, you will have two items show up in your taskbar. If you want to have only one, add the following line of your code to your program:
 
SetSystemAttribute (ATTR_TASKBAR_BUTTON_VISIBLE, 0);
 
This should give you the behavior that you want. However, the downside is that your applicationn does not show up in the Applications tab of the Windows Task Manager.
 
This behavior was recently changed, in CVI 8.5, which is the most recent version of CVI. In this version, you won't have to modify your program or the panel attribute. Panels should be minimized on the task bar, and this should have no effect on the Task Manager.
 
Luis
 
 
0 Kudos
Message 2 of 3
(3,188 Views)
Thank you very much. It solves my problem.
0 Kudos
Message 3 of 3
(3,173 Views)