Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing form from shortcut
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00148464
Message ID:
00148683
Vues:
38
Michelle,

It's perfectly valid design for objects to pass references to themselves to another object. It can be much more flexible and allow for easier designs than forcing everything to always run in some hard coded object hierarchy.

While a popup menu is running you are guaranteed that the form that launched the menu will remain active (unless you've got timers changing active forms) any user action that could occur that would change focus to another form will deactivate the popup.

>My logic is that when you right-click on a form, it will be the active form, so just referring to the active form works for me. If the procedure were more complicated and gave the user a chance to make a different form active in the middle of it, I'd be in trouble.
>
>To be honest, I know very little about OOP philosophies. I know enough to know what an object is and how to use one, but that's about it.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform