Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu's and Modeless Forms
Message
From
04/06/1999 07:22:06
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Menu's and Modeless Forms
Miscellaneous
Thread ID:
00226414
Message ID:
00226414
Views:
57
Greetings All,

I have an app which uses a bunch of modeless forms. I have 2 problems. First, if I am running a form with a couple of list boxes and the user hits "edit" to modify the data on screen, then he opens up another form, possibly one to add a record for one of the pick lists on the other form, I tend to get an error. If I set all the forms to "private data session" will this solve the problem? If not, how?

Second, I also may want to prevent the user from opening another form while in "edit" mode. I placed the following code in the skip option in the menu designer:

iif(_screen.formcount > 0,activeform.edit_mode = .t.,wexist("frmpassword"))

I did this because there may or may not be a form open on the screen. It sort of worked, but noth the way I wanted. If a form opened up, then the user hit "edit", the menu options remained as normal until I tried to select a menu option. At that time was when the menu items became disabled. The same things happened in reverse. When I selected "save" or "cancel", the menu appeared disabled until I tried to select (activate) the menu with the mouse, then it was OK. How can I get this to work right away without actually trying to activate the menu with the mouse or hot keys.

Thanks in advance,

Scott
Next
Reply
Map
View

Click here to load this message in the networking platform