FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Every key makes a beep

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
baxissimo



Joined: 23 Oct 2006
Posts: 241
Location: Tokyo, Japan

PostPosted: Sat Nov 17, 2007 12:07 am    Post subject: Every key makes a beep Reply with quote

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
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Mon Nov 19, 2007 9:51 am    Post subject: Re: Every key makes a beep Reply with quote

The snapshot doesn't beep, but I realize it probably should. The beeping should be related to onKeyPress/keyPress.
Back to top
View user's profile Send private message
baxissimo



Joined: 23 Oct 2006
Posts: 241
Location: Tokyo, Japan

PostPosted: Mon Nov 19, 2007 10:29 am    Post subject: Re: Every key makes a beep Reply with quote

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
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Fri Nov 23, 2007 8:24 am    Post subject: Re: Every key makes a beep Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group