Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Figuring out What PRG Editor windows are open.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00666058
Message ID:
00666233
Views:
18
Hi, Sam!

@@@
>>
I was thinking a timer with a one or two second delay. Cheesy, but workable.
<<

Cheesy is the right word <s>!

>>
How do I capture that?

Maybe not for a "production" application, but for development I will be happy with parsing the title for .prg, .scx, or .txt, then I can call modi comm, screen, or file.
<<

This is not a problem, because you only have to use the ACTIVATE WINDOW command, which gets the caption as the only parameter.
That means if you know the caption of any existing window in VFP you can use ACTIVATE WINDOW... to bring it to the front an make it active independent from the kind of window!

>>
>- And I see no way to iterate through all windows except deactivating the WONTOP() window and look for the upcoming WONTOP() window etc. which would cause a lot of flickering!

Yeah that would stink. Hmm, maybe I can play with _screen.LockScreen.
<<

Every 2 seconds - not a good idea.
May be you can create a combination: Check every 2 seconds the WONTOP() window (and add it to the toolbar if it's a new one) and add also a refresh button to your toolbar to catch windows which are going thru the 2-seconds-web!
SeBaFlu
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform