LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Strange phenomena :everytime I open a CVI exe application, there're always two in the system task bar

  I'm troubled with a strange situation and hope somebody could help me got out of it. My problem is everytime I open a CVI exe application, there're always two in the system task bar, see attached.
 
 
Thanks!
Jacky
0 Kudos
Message 1 of 5
(3,717 Views)

Hello Jacky,

One taskbar button is for the application, the second one is for the application's panel. It's quite easy to solve this problem. In the User Interface editor, double-click your panel, click on the "Other Attributes" button, and clear the "Has taskbar button" box.

0 Kudos
Message 2 of 5
(3,715 Views)
Thanks!
 
0 Kudos
Message 3 of 5
(3,712 Views)
I usually use:

SetSystemAttribute(ATTR_TASKBAR_BUTTON_VISIBLE, 0);

right after the InitCVIRTE(); call.

When you have multiple panels and allow them to be minimized, you really want the taskbar button on the panel.  IMHO the application level button is always redundant unless you are doing tricky things as the application exits.

--wally.
.
0 Kudos
Message 4 of 5
(3,662 Views)

Hi Wally,

A downside of setting ATTR_TASKBAR_BUTTON_VISIBLE to 0 is that the application no longer shows up in the Task Manager, which might be important to some people. You should take a look at this thread, which discusses this issue in some detail. I've also posted an an update in that thread related to a change made in CVI 8.5.

Luis

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