Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple READ EVENTS question
Message
From
30/04/1998 06:45:02
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00095596
Message ID:
00095910
Views:
20
>The app I've developed is started with a main.prg that call my "main form" which is modeless and showWindow is set to in screen. I issue a READ EVENTS after calling this for to start event processing. The remaining forms that are instanciated throughout the app are all modal type. Now I want to make them modeless so I can create custom menus for each form. The problem I have now is that when I call one of these forms that I changed from Modal to Modeless, The zoom on by and don't respect event processing. What is the correct way to call these modeless forms so they stop for event processing. Do I need to put a READ EVENTS in after every DO FORM someform? or is only one READ EVENTS sufficient that I use in the main.prg. Obviously I'm missing something here, but I can't quite figure out how to get these forms to work correctly. Any help is appreciated! Thanks


What I did here was to implement "form modal" forms .
when a form needs a child form it CREATEOBJECT the new form, move the focus
to that form and then doesn't allow the focus to return to it as long as the child form is open
when the child form terminates it sends a message to the parent form that resumes the operation that was going in (so what I actually have is 2 methods one that is called before the child form is shown and one that is called when it terminated)

Arnon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform