Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a form from a pageframe
Message
 
À
19/04/2002 10:23:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00646904
Message ID:
00646926
Vues:
15
>i have a vfp7 form with a pageframe. on one of the pages there is a grid where if the user right clicks on a record it pops up a form which the user can view and then close. two problems:
>
>1. right clicking on the grid only works once. for some reason after the user closes the popup window he cannot right click on another record. i have tried everything and for whatever reason it appears that the right click event is somehow being bypassed after the first time. there is no error of any kind.

Never seen this in the grids. Maybe you can post your code how you exactly do this.

>2. there is no gotfocus() event for a page on a pageframe. how can i programmatically tell if the popup window has been closed and the focus is now back on the pageframe page?

You may set some property, say form.AnotherFormIsRun = .t. and reset it in Page.Activate(), something like
IF thisform.AnotherFormIsRun
   thisform.AnotherFormIsRun = .f.
ENDIF
What do you show in that other form? some details for the record info?
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform