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

Bug? onKeyPress is never called

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



Joined: 05 Jun 2005
Posts: 269

PostPosted: Tue Dec 04, 2007 3:14 am    Post subject: Bug? onKeyPress is never called Reply with quote

Hi,

I am using dfl 0.9.6.01 and my overloaded onKeyPress is never called. Any ideas why?

Thanks,
bobef
Back to top
View user's profile Send private message
Chris Miller



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

PostPosted: Tue Dec 04, 2007 2:04 pm    Post subject: Re: Bug? onKeyPress is never called Reply with quote

The key events are handled differently in the release and the snapshot. The snapshot is probably more correct.
Back to top
View user's profile Send private message
bobef



Joined: 05 Jun 2005
Posts: 269

PostPosted: Wed Dec 05, 2007 2:58 pm    Post subject: Reply with quote

Thanks, it works now, but I'm getting only capital letters. Or maybe I am doing something wrong?
Back to top
View user's profile Send private message
Chris Miller



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

PostPosted: Thu Dec 06, 2007 7:55 pm    Post subject: Reply with quote

That's working as expected, but I didn't realize there's no way to get the actual character, so now the current snapshot lets you get it with keyChar if you use KeyPressEventArgs.
Back to top
View user's profile Send private message
bobef



Joined: 05 Jun 2005
Posts: 269

PostPosted: Fri Dec 07, 2007 2:40 am    Post subject: Reply with quote

Thanks!
Back to top
View user's profile Send private message
bobef



Joined: 05 Jun 2005
Posts: 269

PostPosted: Mon Dec 10, 2007 5:15 am    Post subject: Reply with quote

Now one more problem with the keys popped up. I am not getting notification when I press tab. Not in onKeyDown, nor onKeyPress.

Thanks,
bobef
Back to top
View user's profile Send private message
Chris Miller



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

PostPosted: Thu Dec 13, 2007 7:21 am    Post subject: Reply with quote

It's processed by the dialog stuff. You can use ControlStyles.WANT_TAB_KEY but this isn't guaranteed always to be there.
Back to top
View user's profile Send private message
bobef



Joined: 05 Jun 2005
Posts: 269

PostPosted: Thu Dec 13, 2007 7:54 am    Post subject: Reply with quote

What dialog stuff? Isn't the Form a child of Control which is just CreateWindow, and not CreateDialog, which makes it a normal window ? Or I am missing something in the DLF's internals...
Back to top
View user's profile Send private message
Chris Miller



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

PostPosted: Thu Dec 13, 2007 9:52 pm    Post subject: Reply with quote

bobef wrote:
What dialog stuff? Isn't the Form a child of Control which is just CreateWindow, and not CreateDialog, which makes it a normal window ? Or I am missing something in the DLF's internals...

It's possible to apply the dialog stuff to CreateWindow windows, and DFL does. Otherwise, you wouldn't be able to tab to the next control, hit escape to close, or use alt mnemonics.
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