🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Disabling a dialog button results in lost characters.

#14461
From: Bob Gonder
Date: Mon, 11 Aug 2003 16:41
20 lines
2027 bytes
Gary Setter wrote:

>That didn't help me. The dialog is not getting the escape character without
>explicitly setting the focus window as I said in my first post.

Direct from the Help:

Only one window at a time can receive keyboard input; that window is
said to have the keyboard focus. If an application uses the
EnableWindow function to disable a keyboard-focus window, the window
loses the keyboard focus in addition to being disabled. EnableWindow
then sets the keyboard focus to NULL, meaning no window has the focus.

So, when you Disable a window(button), No Other Window Gets the Focus!
You Must SetFocus to another window(button) if you want to continue
getting keyboard input.
I think this is also saying that if the window you are disabling does
_not_ have current focus, that the keyboard focus is not affected.
So if button "Toggle Other Button" is clicked, no problem.
If button "Disable Me" is clicked, need to focus another button.
Technical Details
Message-ID: <hahfjvojar7ujop8mujmipmqdae7n6326l@4ax.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-mail
References: <3f34ee12$1@newsgroups.borland.com> <3F370EB6.3DB6@uniserve.com> <3f37be6f@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-11 09:53:56 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Disabling a dialog button results in lost characters.
Date: Mon, 11 Aug 2003 09:41:07 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <hahfjvojar7ujop8mujmipmqdae7n6326l@4ax.com>
References: <3f34ee12$1@newsgroups.borland.com> <3F370EB6.3DB6@uniserve.com> <3f37be6f@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.31.164.85
X-Trace: newsgroups.borland.com 1060620066 67.31.164.85 (11 Aug 2003 09:41:06 -0700)
Lines: 22
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