🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16459

Re: strange behavior of input dialog box - mrOk

#16459
From: Remy Lebeau (TeamB)
Date: Tue, 13 May 2003 17:55
21 lines
1995 bytes
"JeJe" <jejesan@hotmail.com> wrote in message
news:3ec124b6@newsgroups.borland.com...

> the thing that bothers me is that it used to work,
> and I don't get it why it should work in any way.
> do you see how it could have ever worked at one
> point?

There is no way it would ever have worked that way before.  Close() has
always set the form's ModalResult to mrCancel.  The only possibility would
be if the OnClick handler was explitically resetting ModalResult back to
mrOk after calling Close() but before returning control to the form.  The
button's ModalResult is set to the form's ModaulResult before the OnClick
handler is triggered.  Calling Close() inside the handler would override
that assignment, so if the handler wasn't resetting the ModalResult back
again after calling Close() then the form's ModalResult would remain at
mrCancel when the form closed.


Gambit
Technical Details
Message-ID: <3ec1312d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ec08128$1@newsgroups.borland.com> <3ec08e40$1@newsgroups.borland.com> <3ec124b6@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,f62c21c9818eccf7
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-13 10:57:29 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ec08128$1@newsgroups.borland.com> <3ec08e40$1@newsgroups.borland.com> <3ec124b6@newsgroups.borland.com>
Subject: Re: strange behavior of input dialog box - mrOk
Date: Tue, 13 May 2003 10:55:51 -0700
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3ec1312d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1052848429 207.175.226.26 (13 May 2003 10:53:49 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail