Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Canada
 Pete Sass
 To: Koen Piller
  Where is Koen Piller?
 Santpoort-Zuid
 Netherlands
 Koen Piller
 Tags
Subject: RE: VFP Window To Front of Any Application
Thread ID: 394021 Message ID: 394038 # Views: 49 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Sunday, December 29, 2013 3:04:11 PM         
   


> >
> >
> > Hi Koen,
> >
> > QUESTION: But why do you instantiate other forms also with ShowWindow = 2 ??
> > ANSWER : I did not in this specific example, but windows of other applications running
> > such as QuickBooks Accounting are on top and they are set to run on top so my VFP window
> > although launched second does not appear on top. I want my VFP main top-level form to pop up on
> > top of another totally different application that is running.
> >
> > This is a highly complex integration system so very hard to explain as to why things are done
> > certain ways to meet the demands of the client who wants things to appear in exactly the way the
> > customer deems it to appear.
> >
> > What the users monitor looks like if I load the VFP EXE and the client already has QuickBooks running
> > full screen and I do not add in the API call.
> >
> >
> > If I add in the API then see what is displayed below:
> >
> >
> > As to your question of multiple top level forms, there are cases where you want to do this
> > Koen to meet the requirements of what a client is asking for in highly customized application.
> > As a good example in this same application we have Visual Earth maps being launched from my
> > main top-level-form. These forms with maps embedded in them are also Top-Level-Forms being
> > called from my main top level form.
> > The reason for this is the client is operating a many multi-display system and want to be
> > able to launch forms with maps and drag these to additional monitors. See pic below:
> >
> >
> > So how do you detach and drag and drop multiple instances of mapping and security tracking
> > to 8 different monitors with the forms configured as In-Top-Level forms??
> > These map forms are also cases where you may wish the pop to top API to be used.
> >
> > Pete "the IceMan", from the Great White North of Canada.
> > www.marathongriffincomputers.com
>
> Hi,
>
> Indeed a 8 monitor configuration is not a default configuration. To my question why do load more than once a top-level form in your application, I am sorry I am still not clear. For me this is not correct architecture. As for your question, I would not advise a user of a nMonitor system to move a form not being the ToplevelForm to an other window, simply move the ToplevelForm and your form in this ToplevelForm will move along. And in case you have such a system I would start my application twice: once in full screen on monitor x and once in minimized on my best-visible screen. No moving etc just click to maximize :).
> Your API call to enable a VFP.exe to be run on top of a running QuickBooks exe is a solid solution.
>
> Regards,
>
> Koen


Hi Koen,

QUESTION: To my question why do load more than once a top-level form in your application, I am sorry I am still not clear.

ANSWER: Main application running on main monitor only. From main application you can launch as many top-level-forms
with maps in them as you like. Because each newly launched form is a top-level-form, each one can be dragged and
dropped on a separate monitor.
You do not want multiple instances of the entire core application running 8 times, you only want the core application
running once on the main monitor, You do want multiple instances of a form with maps running in them on the other
7 monitors. :-U

Below is a non-API way to force to top:
Put the code below in a forms Activate event.
lcFormName = Thisform.Name 
ACTIVATE WINDOW &lcFormName


Pete "the IceMan", from the Great White North of Canada.
www.marathongriffincomputers.com

ENTIRE THREAD

VFP Window To Front of Any Application Posted by Pete Sass @ 12/28/2013 5:56:59 PM
RE: VFP Window To Front of Any Application Posted by Koen Piller @ 12/28/2013 6:59:57 PM
RE: VFP Window To Front of Any Application Posted by Pete Sass @ 12/28/2013 9:50:17 PM
RE: VFP Window To Front of Any Application Posted by Koen Piller @ 12/29/2013 12:48:31 PM
RE: VFP Window To Front of Any Application Posted by Pete Sass @ 12/29/2013 3:04:11 PM
RE: VFP Window To Front of Any Application Posted by Tore Bleken @ 12/29/2013 11:56:51 PM
RE: VFP Window To Front of Any Application Posted by Jun Tangunan @ 12/30/2013 12:47:49 AM
RE: VFP Window To Front of Any Application Posted by Pete Sass @ 12/30/2013 1:02:00 AM
RE: VFP Window To Front of Any Application Posted by Koen Piller @ 12/30/2013 8:00:20 AM
RE: VFP Window To Front of Any Application Posted by Tore Bleken @ 12/30/2013 9:11:19 AM