Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternative to Cntbar()?
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01359433
Message ID:
01359446
Vues:
34
>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!

I'm not sure if this is helpful (haven't tried), but check Re: How to find Item Number on a menu? Thread #1107544 Message #1107691
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform