Board index » cppbuilder » Opening a modal dialog form from a mdeless form

Opening a modal dialog form from a mdeless form

I asked a question yesterday about opening a modal form from a modeless
one.  The last response I got was from Mark Cashman of Team B.

Quote
> Have you tried having the dialog be instead a
> non-modal form? You could have the caller of the
> dialog set its own form's Enabled property to false
> before the invocation, and have the dialog somehow
> notify its caller when it is done.

I then asked how this could be accomplished.
Does ANYONE know how to do this or am I the first person to try it?

Thanks
Chris

 

Re:Opening a modal dialog form from a mdeless form


Most people recommend waiting 3 days to re-post in these groups.  I
doubt that anyone had time to download your attachments, which are
discouraged in these newsgroups, I think out of consideration to
foreign users with expensive internet connections.  But your question
was clear enough without the example.  It's an unusual request, and I
doubt that the real experts who frequent this group would do all of
the coding necessary to achieve it, so you're stuck with *me*.  I
think a redesign might eliminate the need to do what you ask.  But
anything can be done in BCB...

Quote
Chris Martin <cmar...@bitwise.com> wrote in message

news:38E3BA87.3FC59252@bitwise.com...
Quote
> I asked a question yesterday about opening a modal form from a
modeless
> one.  The last response I got was from Mark Cashman of Team B.
> I then asked how this could be accomplished.

<snip>

Harold Howe has a lot of information on minimizing applications and
forms.  I think what you need might be here:
http://www.bcbdev.com/faqs.htm

This also seems relevant:
http://www.mers.com/MERLIST/BORLAND/PUBLIC/CPPBUILDER/LANGUAGE/66567.H
TML
You can do further searches on that engine.

Quote

> Does ANYONE know how to do this or am I the first person to try it?

You are in the right newsgroup.  Unfortunately, the "first" person to
try it was in the wrong one:

borland.public.cppbuilder.language
From: Tsvetozar / Fast Fashion
Subject: Modal Dialogs question
Date: Thursday, March 23, 2000 9:40 AM
-------
Timothy H. Buchman
========================================
City Center Theater, New York NY
mailto:tbuch...@citycenter.org
Please treat this signature information as confidential.
========================================
Search .borland message archive on http://www.mers.com/searchsite.html

Re:Opening a modal dialog form from a mdeless form


Sorry, I also had a more concrete suggestion:

If you intercept the minimization message for the second non-modal
form, you could minimize the sort-of-modal dialog there, making them
disappear together.  You'd have to intercept the restore of either to
restore both.  That's why I mentioned the old posting about
intercepting the MINIMIZE message.

I wonder whether it would be sufficient to delete the minimize box
from the caption of both forms--but maybe you want the user to be able
to set them aside.
-------
Timothy H. Buchman
========================================
City Center Theater, New York NY
mailto:tbuch...@citycenter.org
Please treat this signature information as confidential.
========================================
Search .borland message archive on http://www.mers.com/searchsite.html

Quote
Chris Martin <cmar...@bitwise.com> wrote in message

news:38E3BA87.3FC59252@bitwise.com...
Quote
> I asked a question yesterday about opening a modal form from a
modeless
> one.  The last response I got was from Mark Cashman of Team B.

Re:Opening a modal dialog form from a mdeless form


Quote
> Most people recommend waiting 3 days to re-post in these groups.  I
> doubt that anyone had time to download your attachments, which are
> discouraged in these newsgroups, I think out of consideration to
> foreign users with expensive internet connections.

I apologize I was unaware of the three day recommendation.  From
experience either someone posts replies fairly quickly or not at all.  I
will wait longer in the future.

Chris

Other Threads