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:
00666129
Vues:
17
>>Hi, Sam!
>>
>>>>
>>Is there a way to programmatically determine what editor windows are open?
>>That is to say, windows opened with "modi comm ?"
>>And how about "modi form ?"
>><<
>>
>>Yes there are some possibilities! Can you explain your goals a little bit deeper?
>
>Sure thing.
>
>I want to create a toolbar with some buttons that represent the open windows. A poor man's Tabbed Document Interface. I would like to poll the open windows, then add and remove the buttons dynamically as files open and close. When a button is clicked I want to bring that window forward.
>
>I am trying to emulate a feature of a text editor, Editplus 2 (www.editplus.com) Plus tabbed Document Interface are cool.

I'd suggest you first download my SpyFoxFox program from the files section. It contains code that enumerates all open windows in Windows. If you look at the code, you'll see how to get all the child windows and their title bar text of the _SCREEN window. In VFP 7.0, you'd simply start with _SCREEN.hWnd and use GetWindow with GW_CHILD. If it were me, I wouldn't even bother with doing the search earlier than the command button's Click event.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform