05-03-2009 06:47 AM
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!
Solved! Go to Solution.
05-03-2009 03:49 PM
Hi,
In your application ".ini" file you must put this:
hideRootWindow=True
05-04-2009 07:04 AM
Perfect!
Thanks
09-09-2010 05:13 PM
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.
09-10-2010 05:15 AM
You can select a custom INI file when building the executable to be distributed with your application.
Ton
09-10-2010 10:54 AM
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.