LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

persistent taskbar button

Solved!
Go to solution

I have just gotten started using G Toolbox 3.3 (LV8.5) for system tray tools.  Using code from inside the examples, I have my application running as desired, except for an initial system tray button from startup, which loses its connection to any wndow as soon as the front panel disappears the first time and the system tray icon apears.   The orphan taskbar button won't go away and does nothing.  When I click my application icon in the system tray the front panel reappears as desired, creating a second taskbar button which goes away as desired when I minimze the front panel.

 

My front panel is appearing (as desired) at launch before it minimizes into the system tray.  I do it this way so that successful launch is assured before the window disappears, giving assurance that things are really running in the background as expected.

 

Is there a way to suppress this initial taskbar button, leaving the desired behavior alone?

 

Thanks!

0 Kudos
Message 1 of 6
(4,435 Views)
Solution
Accepted by topic author trbo_usr

Hi,

 

In your application ".ini"  file you must put this:

 

hideRootWindow=True

Message 2 of 6
(4,412 Views)

Perfect!

 

Thanks

0 Kudos
Message 3 of 6
(4,387 Views)

Is there anyway to do this as part of the build process?  It seems like apparently duplicated taskbar entries would be a problem for all but the most sophisticated users making this a common problem.

0 Kudos
Message 4 of 6
(4,054 Views)

You can select a custom INI file when building the executable to be distributed with your application.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 5 of 6
(4,037 Views)

That's a good suggestion, now that I know the other elements of the INI file are unlikely to change during development, I just call the custom INI whenever I do a build.

 

Of course, what I was hoping for was a checkbox saying Hide Root Window in Taskbar.  This seems like a common enough requirement to merit such an addition.

 

Since everyone will have their own favorite additional line they would like to add to the INI file, it might be better to have an "Additional line(s) for INI" feature instead.

0 Kudos
Message 6 of 6
(4,011 Views)