Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Powerpoint Window not on top
Message
From
18/07/2011 11:29:15
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, United States
 
 
To
17/07/2011 09:00:04
Jim Mathewson
J W Mathewson Consulting
Montréal, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01518394
Message ID:
01518438
Views:
45
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
Previous
Reply
Map
View

Click here to load this message in the networking platform