Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modal -vs- nonmodal ancestory matters ??
Message
From
10/01/2003 17:28:27
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Modal -vs- nonmodal ancestory matters ??
Miscellaneous
Thread ID:
00740529
Message ID:
00740529
Views:
64
hello all again --

boy, this modal form thing is getting to be like gum on my shoe !!!

this might be a long-winded way of asking a simple question, but here goes...

for sake of example, say i have forms like this
FORM_ROOT      - non-modal
FORM_CALLER_1  - non-modal
FORM_CALLER_2  - non-modal
FORM_A         - non-modal
FORM_B         - non-modal
in the main program, i call FORM_ROOT by
DO FORM FORM_ROOT
READ EVENTS
CANCEL
every form has a close button.

click event for close button FORM_ROOT.cmd_Close is
THISFORM.RELEASE
CLEAR EVENTS
close button click event for all other forms is just THISFORM.RELEASE

every form has 1 or more buttons to call another form. the
click event of each button is simple, like
DO FORM <form-name>
the calling sequence is
FORM_ROOT.cmd_Call_Form_Caller_1.CLICK      calls FORM_CALLER_1
FORM_CALLER_1.cmd_Call_Form_Caller_2.CLICK  calls FORM_CALLER_2
FORM_CALLER_2.cmd_Call_Form_A.CLICK         calls FORM_A
FORM_CALLER_2.cmd_Call_Form_B.CLICK         calls FORM_B
i've implemented exactly this, and when i go through the form
sequence to FORM_A, i can then activate FORM_CALLER_2 by clicking
on it, then click FORM_CALLER_2.cmd_Call_Form_B, which allows
me to have both FORM_A and FORM_B open at the same time, which
makes me very happy, because that's how i understand it is supposed
to work.

BUT. if i make Form_Caller_1 OR Form_Caller_2 MODAL
then FORM_A and FORM_B do not act non-modal, which does not make
me happy.

is this unavoidable VFP behavior ? i've got a zillion forms in this
app that are modal (generally for good reason) and out there on
one of my branches, i'd like to use a NON-modal form.

do i REALLY have to have all forms in the calling sequence non-modal,
just to use a non-modal out on the end of a branch ???

say it ain't so !!!


thanks for any help.
patrick
Next
Reply
Map
View

Click here to load this message in the networking platform