Article View: borland.public.cppbuilder.nativeapi
Article #8667Re: Prevent a window from loosing focus
From: Bob Gonder
Date: Tue, 05 Oct 2004 15:42
Date: Tue, 05 Oct 2004 15:42
12 lines
1586 bytes
1586 bytes
Pfister wrote: > >I've written a virtual screen keyboard with C++Builder and i have still a little problem. If i try to rename a file in window file manager using my virtual keyboard, the edit field of the file manager looses focus and turned back to display mode. How can i avoid this? Would be nice if you used word wrap.... Have a look at the WM_SETFOCUS message. It is sent to a window after it has gained the keyboard focus, and supposedly gives the handle of the window that is loosing focus. Perhaps your virtual keyboard could send the virtual keystrokes to that window, and then re-focus it.
Technical Details
Message-ID:
<32g5m0135j98hgjib44cr9cj2m1k7edjj4@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<41624fca$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,cd66799cff924d6c X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Prevent a window from loosing focus Date: Tue, 05 Oct 2004 08:42:38 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <32g5m0135j98hgjib44cr9cj2m1k7edjj4@4ax.com> References: <41624fca$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 65.160.211.218 X-Trace: newsgroups.borland.com 1096990957 65.160.211.218 (5 Oct 2004 08:42:37 -0700) Lines: 15 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail