Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a form from a pageframe
Message
 
To
19/04/2002 10:23:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00646904
Message ID:
00646926
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform