Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keeping a non modal form active.
Message
From
20/06/1998 08:29:47
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00108964
Message ID:
00110192
Views:
44
>Carlos,
>
>Let me preface this all, with "I hate modality" and it really irks me all the places VFP goes modal, there isn't a single good reason for not allowing us to have two MODI STRUs going at the same time in VFP.. just personal pet peeve rant now that's out of my system *g*
>
>I have a modeless menu form and menu items to launch each of the main forms of the app. They are all modeless private datasession. If they have "child forms" those modeless forms are launched in the default datasession (i.e. inherit the parent form DS). All of my forms are launched with a simple DO FORM TheForm
>
>My modeless report form running in the default DS has a "report control container class that has a graphical chk for each report, a destination opg and a Do Report cmd. Each app creates a subclass of this container, and drops into it one class for each report of the app. The form also has the various report criteria selection items. When the Do Report button is clicked it calls the appropriate cReport class go out and actually create the cursor and issue the REPORT FORM. All of this occurs within the one form.
>
>So basically my "report control" container class sounds like your pantimpr class only it's not a form, mine is just a container that's dropped onto the form.
>
>In your case I guess I still don't see why the higher level forms have to be modal which causes the problems for your later forms.
>
>When my app wants to get exclusive use of tables it goes through and shuts down all of the data entry forms. And goes to a modal form for the process so they can't relaunch the data entry forms.
>
>I'm not sure there's any real answers for you in here but maybe an idea or two.
>

David,

No real answers to my problem, but good ideas of the way to go. I don't want loose time finding a solution to my problem and i'm in good health to change my report class from a form to a container and my forms from modal to modeless.

Some questions about this project:

Do you use addobject() to put the container into your form?
Do you turns enabled or visible properties to .f. in all your other objects in the form when running a report ?
How do the 'run report' command removes itself from the form?
When you launch a modeless child form, how must i do if i want process stop untill user finish work in the child form ?
Saludos,
A.G.P.
---------
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform