Article View: borland.public.cppbuilder.nativeapi
Article #14512Disabling a dialog button results in lost characters.
From: Gary Setter
Date: Fri, 08 Aug 2003 14:43
Date: Fri, 08 Aug 2003 14:43
17 lines
1614 bytes
1614 bytes
Hi, 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. I suspected that since the previous page button has focus, after it was disabled, the 'wrong' window received focus. I made my own EnableWindow function. It checks for the change from enabled to disabled and if so it sets focus to the parent of the button. This works. Can anyone confirm that this is a bug? Can anyone say if fixing it as I did makes more problems? Thanks for your help. Gary Setter
Technical Details
Message-ID:
<3f34ee12$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,f7216d587ba9f99f,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-09 05:59:09 PST From: "Gary Setter" <setterg@worldnet.att.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Disabling a dialog button results in lost characters. Date: Fri, 8 Aug 2003 09:43:51 -0500 Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit 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: 12.84.32.64 Message-ID: <3f34ee12$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1060433426 12.84.32.64 (9 Aug 2003 05:50:26 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail