View previous topic :: View next topic |
Author |
Message |
baxissimo
Joined: 23 Oct 2006 Posts: 241 Location: Tokyo, Japan
|
Posted: Sat Nov 17, 2007 12:07 am Post subject: Every key makes a beep |
|
|
I followed the tip in the previous topic about setting the tabStop property to make it so the GLControl can get focus.
Now I have the problem that after every key stroke the app beeps.
I thought maybe it was because I wasn't setting the event.handled value to true, but that doesn't seem to make a difference.
Suggestions? |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Mon Nov 19, 2007 9:51 am Post subject: Re: Every key makes a beep |
|
|
The snapshot doesn't beep, but I realize it probably should. The beeping should be related to onKeyPress/keyPress. |
|
Back to top |
|
|
baxissimo
Joined: 23 Oct 2006 Posts: 241 Location: Tokyo, Japan
|
Posted: Mon Nov 19, 2007 10:29 am Post subject: Re: Every key makes a beep |
|
|
Chris Miller wrote: | The snapshot doesn't beep, but I realize it probably should. The beeping should be related to onKeyPress/keyPress. |
You mean it should beep if handled isn't set to true, right? Or does handled default to true and you set it to false if you didn't handle it?
About keyPress, in the last release version of DFL keyPress wasn't getting called at all, so I decided it must be for some esoteric purpose. (Or maybe that was because I hadn't done the tabStop/SELECTABLE thing then?).
KeyPress is like a WM_CHAR message, right? |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Fri Nov 23, 2007 8:24 am Post subject: Re: Every key makes a beep |
|
|
Key-press is indeed from WM_CHAR. The reason why the release and snapshots do it differently is because I realized it wasn't doing the key event stuff right, so I'm trying to get it right, but it's at least better. |
|
Back to top |
|
|
|