Article View: borland.public.cppbuilder.nativeapi
Article #7725Re: How does one tell if a Form is open modally?
From: Remy Lebeau (TeamB)
Date: Wed, 12 Jan 2005 18:33
Date: Wed, 12 Jan 2005 18:33
14 lines
1394 bytes
1394 bytes
"Mark Jacobs" <http://www.jacobsm.com/mjmsg.htm?mj@critical> wrote in message news:41e4fe65$1@newsgroups.borland.com... > How does one tell if a Form is open modally? If it is open modally, > setting ModalResult to something, closes the form. However, it does > nothing if the form is open non-modally. I need to Close() it in this > instance, but I can't tell if the form is open modally? You can call Close() on a modal form. It will set the ModalResult to mrCancel. Gambit
Technical Details
Message-ID:
<41e56d19$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<41e4fe65$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,79de1dee474f0806 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <41e4fe65$1@newsgroups.borland.com> Subject: Re: How does one tell if a Form is open modally? Date: Wed, 12 Jan 2005 10:33:45 -0800 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <41e56d19$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1105554713 68.69.17.41 (12 Jan 2005 10:31:53 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail