Information générale
Catégorie:
Gestionnaire de menu & Menus
Titre:
Alternative to Cntbar()?
Versions des environnements
Network:
Windows 2003 Server
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!
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement