Article View: borland.public.cppbuilder.nativeapi
Article #14539Re: Disabling a dialog button results in lost characters.
From: Jim Melsom
Date: Mon, 11 Aug 2003 03:34
Date: Mon, 11 Aug 2003 03:34
11 lines
1422 bytes
1422 bytes
Gary Setter wrote: > I have some dialogs with 'Previous page' 'NextPage' buttons. When the > current page becomes first, the previous page button is disabled. If I press > escape to exit the dialog at that point, the escape is ignored. A general way to check for a keystroke at the dialog level is: - set the form's KeyPreview property to 'true' - implement the form's KeyDown event and check for VK_ESCAPE - if VK_ESCAPE is pressed set ModalResult to mrCancel (if it's a modal dialog)
Technical Details
Message-ID:
<3F370EB6.3DB6@uniserve.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f34ee12$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,f7216d587ba9f99f X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-10 20:36:34 PST Message-ID: <3F370EB6.3DB6@uniserve.com> Date: Sun, 10 Aug 2003 20:34:14 -0700 From: Jim Melsom <jm@uniserve.com> Reply-To: jm@uniserve.com X-Mailer: Mozilla 3.04 (WinNT; U) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Disabling a dialog button results in lost characters. References: <3f34ee12$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 204.244.165.102 X-Trace: newsgroups.borland.com 1060572859 204.244.165.102 (10 Aug 2003 20:34:19 -0700) Lines: 11 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail