Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing form from shortcut
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00148464
Message ID:
00148683
Views:
37
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform