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