Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Figuring out What PRG Editor windows are open.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00666058
Message ID:
00666115
Vues:
14
Hi, Sam!

>>
I want to create a toolbar with some buttons that represent the open windows.
<<

I'm not sure whether this is a good idea <s>.

The problem I see is: There is no event which fires if the user opens or closes a document.

IMO that gives you two opportunities:
(A) Deal with a timer.
(B) Define a function key to refresh your toolbar.

But I see a lot of arguments against your idea:
- The important one: What you want to do is very close to the window menu item!
- The only information you can capture is the caption of the active window - but this isn't enough to decide is this a MODI COMM or a MODI FILE or a MODI MEMO or a MODI GENERAL.
- 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!

BTW: What about setting your idea on the VFP whish list?
SeBaFlu
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform