Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Apps Always takes Focus - Can this be changed?
Message
De
24/04/2008 15:53:43
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
VFP Apps Always takes Focus - Can this be changed?
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Divers
Thread ID:
01312973
Message ID:
01312973
Vues:
124
I have created many PRGS that have no interface and do not appear on taskbar nor show up on the normal desktop screen. I've accomplished this by adding the SCREEN=OFF statement to the config.fpw file. Also, I have found that I can include some occasional "WAIT WINDOW" statements in the program and only "wait window messages" appears on my desktop in the upper right corner of the screen. These messages go away after the TIMEOUT expires. This works really great, as it lets me know that the program is still running and I can tell from the messages where the program is, as it works though its tasks.

In some ways, this is very similar to the "pop-up toast" messages that appear from Outlook, except these messages are at the top of the screen and they don't "fade" in and out. However, I've experienced one problem. These PRGs are launched via scheduler several times throughout the day and every time the PRGs launch it grabs focus from the current application I'm using (i.e., Outlook, Word, Excel, etc.). Focus can be returned to the application I'm using with just a mouse click but it's very annoying to be typing away and look up and see that nothing is happening because the application has just lost focus.

FYI ... I read some articles on how to do the “pop-up toast" windows in VFP and tried my hand at creating these type of messages. It worked well but I had the same problem of program "grabbing" focus away from the current app whenever the VFP app launches. Now, once the application is running either the “WAIT WINDOW” approach or the “toast” window approach allows messages to come and go without intrusion on the user. But, when the program launches, that is when I loose focus!

Is there any way to launch a VFP9 application in the "background" without it grabbing focus from the current app that has focus?

Sorry for the length of this question but I didn't know how to word it any shorter.

Thanks,
Robert Wright
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform