Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get an Form/Object Reference via a Prg Class
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00174742
Message ID:
00175086
Vues:
36
Dan,

IMHO, that functionality belongs to the form class you use. A few lines of code in the KeyPress method with KeyPreview=.t. would handle it. This way it's all encapsulated to the form and it doesn't matter how many forms there are.

If you want to coordinate a Menu item to the form you can use _screen.ActiveForm.SomeMethod().

>Ok. Here's another question, then. We have a company that wants to add old Dos interface keyboard navigation buttons. PGUP for previous record ... etc. What we were thinking would be easiest would be to add form specific menus. Now the question is what is the best way to handle movement if your not using Name and they can have multiple instances of the same form open. _SCREEN.ActiveForm?
df (was a 10 time MVP)

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

Click here to load this message in the networking platform