General information
Category:
Forms & Form designer
Title:
Menu's and Modeless Forms
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only