Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ACTIVATE WINDOW
Message
 
To
11/05/2001 15:49:24
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00506381
Message ID:
00506392
Views:
23
This message has been marked as a message which has helped to the initial question of the thread.
>George,
>
>I figure, go straight to the guy who knows...
>
>When I start an application from within VFP, one of the first things that happens is DEACTIVATE WINDOW "Project Manager". When my application closes, I would like for it to ACTIVATE WINDOW "Project Manager", if the Project Manager was indeed already open when I started the app.
>
>So, I need to know if that window exists when my application starts. Does VFP not have any awareness of what windows are open even within VFP itself? Or do I have to go to the API (use your IS_RUN)?
>
>Thanks,

Steve,

You mean, of course, when debugging within the design environment, right?

If so, it's the same process you'd use when hiding the standard toolbar. Namely, something like
IF WEXIST("PROJECT MANAGER")
  HIDE WINDOW "PROJECT MANAGER"
ENDIF
When exiting
IF WEXIST("PROJECT MANAGER")
  SHOW WINDOW "PROJECT MANAGER"
ENDIF
My Is_Run() doesn't check child windows. However, the _VFP system variable can tell you how many projects are open and give you a reference to the current project via the ActiveProject Object.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform