Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Once again, mimize to system tray?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00288575
Message ID:
00288587
Vues:
10
>Hi all.
>
>I have been scouring archives and have found a lot of threads regarding showing icon apps in the system tray, but I don't think I have found quite how to do what I want.
>
>Basically I want to have a program running, monitoring for a file to appear. While monitoring the program needs to be invisible, preferable with a tray icon and no entry on the task bar. Once the file appears, I want to be able to pop up a dialog, process the file, and then go back to monitoring (invisible) mode.
>
>Basically, what I would like to do is have a form with a timer runniming minimized which can watch for the file and then maximize when the file is found.
>
>I found the file which lets me show icons in the system tray and capture their mouse clicks, etc. but I don't know how to have a form minimize to the system tray, or at least to be invisible so that I can use this other method to display an icon in the system tray.
>

You need to set _SCREEN.Visible to .F. to make it (and any forms running in the context of it) completely invisible, it'll continue to run as a background process. Once you do this, until you make it or some top-level window appear visible with a WindowState of 0 or 2, interacting with it will be probelmatic, so I'd look to have something minimize into the icon tray...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform