Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternative to Cntbar()?
Message
 
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01359433
Message ID:
01359460
Views:
34
Hi lynda,

VFP only refreshes the list of open windows when menu is displayed.
Take a look at Re: Know what files are open Message #840304. It may work for you.


>I have added the Window pad _msm_window to an application's menu and added the Cascade bar and a separator to the _mwindow popup. As application windows are opened, they are added to the Window menu by default. This works exactly as it should. However, I need to loop through the application windows looking for a specific text string. The problem is that CntBar() always returns an incorrect value (often 1) unless I first activate the Window menu. This would imply that the bars for the application's windows were not created using Define Bar, but I don't have control over that process. Is there an accurate way to determine the correct number of bars under these circumstances?
>
>If I issue Activate Popup _mwindow before CntBar() the process works properly--except for the annoying transfer of focus to the menu that is!
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform