Information générale
Catégorie:
Gestionnaire de menu & Menus
Titre:
Not really with the designer, but a menu issue anyway
I have a set of five forms that will automatically pop up the correct menu bar according to a property that they contain. There are 3 different menus that can possibly be displayed depending upon which form is "on top". The menus are activated through the .Activate() event in my form template class. The problem is this; any modal dialog forms (which do not have this menu property, nor any code to run to display a menu) always swap menus. For reasons that I cannot seem to pinpoint, when these modal dialogs enter their .Destroy() event, I can see the wrong menu getting displayed. No code is run to do this....it just happens. Modal forms have their own form template, have nothing is in their .Activate() event and are not in anyway related to the form template used for modeless forms. I've managed to work around it, but the menus still "flash" as they are swapping so I know it is still doing it. Anyone else ever see this?
Steve
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