Article View: borland.public.cppbuilder.nativeapi
Article #16460Re: strange behavior of input dialog box - mrOk
From: JeJe
Date: Tue, 13 May 2003 18:14
Date: Tue, 13 May 2003 18:14
43 lines
2671 bytes
2671 bytes
Thanks Gambit, this will remain as a mystery to me, I compared the source codes of all the versions I had in VSS, and they are identical, so I really don't know what made it to work at one point. which my customer is really concerned with. basically I don't have a strong answer for the situation, even tho I know how to fix the bug. at one point I moved this frmInputDialog to the auto-create under properties, which I don't need to. but I don't think this has any effects. all the DLL's in my build (installShield) are all dated 2 years back, so I know my environment didn't get changed. - JeJe "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> wrote: > >"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:
<3ec1361c$1@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!216.166.71.14.MISMATCH!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ec08128$1@newsgroups.borland.com> <3ec08e40$1@newsgroups.borland.com> <3ec124b6@newsgroups.borland.com> <3ec1312d@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 11:58:51 PST From: "JeJe" <jejesan@hotmail.com> Sender: "JeJe" <jejesan@hotmail.com> Reply-To: "JeJe" <jejesan@hotmail.com> Subject: Re: strange behavior of input dialog box - mrOk Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 65.207.116.227 65.207.116.227 References: <3ec08128$1@newsgroups.borland.com> <3ec08e40$1@newsgroups.borland.com> <3ec124b6@newsgroups.borland.com> <3ec1312d@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3ec1361c$1@newsgroups.borland.com> Date: 13 May 2003 11:14:52 -0700 X-Trace: newsgroups.borland.com 1052849692 207.105.83.65 (13 May 2003 11:14:52 -0700) Lines: 44 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!216.166.71.14.MISMATCH!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail