Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help in 2.6 migration
Message
From
29/04/2002 19:56:37
 
 
To
29/04/2002 18:52:18
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00650251
Message ID:
00650686
Views:
17
The code shows promise.

1) I believe line 2 should say thisform.show(0) in order to make it modeless (?)
2) I believe the last two lines need to be eliminated because they bring things back.

At the bottom of help for show there are the following comments:
* You cannot change the WindowType setting once the window has been displayed.
* The Show method takes a parameter that can override the WindowType setting.

Even though the watch window indicates that windowtype = 0 for the main form, control remains with it, so it effectively remains modal. We may be running against the first of the comments quoted above. The good news is that the outer variables have not lost scope.

I will tinker with the lookup form and the when of the list button and also ask Dave Lehr.
Maybe a whole different technique than making the form modal is necessary.

Thanks and would appreciate further ideas.

Alex

>Alex:
>
>Phew. You have a bit of a tough one here <s>. I will have a think about this but a thought to be getting on with. You could subclass the list method on the form and try something like.
>
>
>thisform.visible = .F.
>thisform.show(2) && Modeless.
>dodefault()  && Call your list.
>thisform.visible = .F.
>thisform.show(1) && Modal
>
>
>I don't know whether this would work but its worth playing around with.
>
>-=Gary
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform