Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Top Level Form
Message
From
30/12/2000 14:39:16
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00457084
Message ID:
00458125
Views:
19
Larry - Appreciate you hanging in there with me
I am using VFP7 SP4

I reduced my application to a top level form and a top level menu named toplevel.mpr and one modal form which is configured as 1 - in top level.

In the init of the toplevel form I have the following code
application.visible = .f.
do toplevel.mpr with this,.t.


In the menu I have one menu item which calls the modal form.
In the skip for field in the option dialog I have _screen.activeform.windowstate = 1

When the form instaniates I get the error message "activeform is not an object.

If I move the 'do toplevel.mpr with this,.t.' to the activate code I do not get the error message.

Seem like we have the same thing - your works mine doesn't. The only thing different is application.visible = .f. Could that be the problem?


Thanks
Gaylen


>Gaylen,
>I couldn't reporduce this behavior (VFP6 SP4 on Win2000 Pro). I created a Top-level form, added a menu to the Init, set 1 option in the menu to skip for a modal form. I also created a second form launched from the menu that was modal and configured as 1 - In Top-level.
>
>Everything worked as expected. When the modal form was launched all menu options were disabled not just the SKIP FOR option. I got no errors from _Screen.ActiveForm not existing when the menu refreshed.
>
>Can you post any more details?
>
>>Larry
>>The initial form that comes up is top level and is modeless. A number of the other are modal and operate in the top level. Some of the forms I want to lock the user until they perform a task. If I can't disable the menu they can move to another form by clicking on the menu.
>>
>>I tried the code _screen.activeform.windowtype = 1 in the skip field in the menu for those menu items I want the menu disabled.
>>
>>I get an error message when the programs starts which say "activeform is not an object". I have the menu load in the init of the main form which is the first form to instaniate.
>>
>>In a similar application, I have no problem with that code and the only thing I am doing different is that I am running this as a top level application.
>>
>>Thanks for any help
>>
>>Gaylen
>>
>*snip*
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform