Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13078
| From | Massimo Bighelli <info@arcasistemi.it> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Form with no editable controls - Keyboard navigation |
| Date | 2020-09-10 18:26 +0200 |
| Organization | ARCA Sistemi S.r.l. |
| Message-ID | <rjdk38$37i$1@gioia.aioe.org> (permalink) |
| References | <fac50eeb-cae7-4931-910f-7be51ae4c0c6o@googlegroups.com> |
Hi Robert, have you tried to force focus on first control in postinit ? *Massimo Bighelli* ARCA Sistemi S.r.l. Il 10/09/2020 17:06, Robert Pope ha scritto: > Hi, > > I have a form with no editable controls. It is a dialog window that contains two fixed text control, one of which is invisible and serves only as a placeholder. I use that placeholder to embed child windows at the position of the placeholder, and then shift the placeholder position down ready for the next embed. Please see the attached image, because it will probably be much easier to follow than my description. > > https://imgur.com/a/sxVDGCw > > Where I'm having trouble is with keyboard navigation, which for my app is a must. I want to use the arrow keys to navigate up and down the list, escape to close the window, enter to select. > > The problem I'm encountering is that the window just consumes the first keystroke without doing anything. After that, everything works as expected. I assume Windows is going through some process of interrogation of my screen on the first keystroke and figuring out that there is no editable control and that it has to flick over into some other mode. Following that, my dispatch receives all the notifications I'd normally expect to see and everything works fine. > > For the WM_GETDLGCODE messages I'm responding with DLC_WANTALLKEYS. The events are being dispatched to the fixed text controls, and I pass that through to my window. > > I don't suppose anyone might have a tip on how I might avoid losing that first keystroke? My best guess is that I need to set a window style somewhere, but I haven't been able to figure it out yet. > > Cheers! > Rob. >
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Form with no editable controls - Keyboard navigation Robert Pope <cooeee@gmail.com> - 2020-09-10 08:06 -0700
Re: Form with no editable controls - Keyboard navigation Massimo Bighelli <info@arcasistemi.it> - 2020-09-10 18:26 +0200
Re: Form with no editable controls - Keyboard navigation Robert Pope <cooeee@gmail.com> - 2020-09-10 09:48 -0700
Re: Form with no editable controls - Keyboard navigation Robert van der Hulst <robert@heliks.local> - 2020-09-11 15:34 +0200
Re: Form with no editable controls - Keyboard navigation Robert Pope <cooeee@gmail.com> - 2020-09-11 08:56 -0700
Re: Form with no editable controls - Keyboard navigation Robert Pope <cooeee@gmail.com> - 2020-09-14 23:42 -0700
csiph-web