Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Powerpoint Window not on top
Message
De
18/07/2011 11:29:15
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
 
 
À
17/07/2011 09:00:04
Jim Mathewson
J W Mathewson Consulting
Montréal, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Divers
Thread ID:
01518394
Message ID:
01518438
Vues:
46
Here is a bit of a kludge...

DECLARE INTEGER FindWindow IN USER32 INTEGER, STRING
DECLARE INTEGER BringWindowToTop IN USER32 INTEGER
BringWindowToTop(FindWindow(0,windowname)) && BringWindowToTop(FindWindow(0,'Microsoft PowerPoint)

This assumes you always know the name of the window and the API functions work in your version of Windows.

Maybe better than nothing.

Gary


>I have developed a catalog management tool which uses the Powerpoint Slide Sorter to re-order items in the catalog database.
>
>When the PP app is launched (Oppt) , I maximize the PP window to obscure the VFP screen so that the user focuses on ordering the slides. When that is complete, the user closes the PP window and continues in VFP.
>
>On my office desktop (Windows XP) this strategy works fine, but on my laptop, the VFP window remains on top.
>
>I have tried using Oppt.Activate but this doesn't do the job.
>
>My app still works but it looks clunky with the VFP window sitting on top of the fullscreen PP window until the user clicks on it.
>
>Any suggestions?
>
>Jim Mathewson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform