View previous topic :: View next topic |
Author |
Message |
bobef
Joined: 05 Jun 2005 Posts: 269
|
Posted: Tue Dec 04, 2007 3:14 am Post subject: Bug? onKeyPress is never called |
|
|
Hi,
I am using dfl 0.9.6.01 and my overloaded onKeyPress is never called. Any ideas why?
Thanks,
bobef |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Tue Dec 04, 2007 2:04 pm Post subject: Re: Bug? onKeyPress is never called |
|
|
The key events are handled differently in the release and the snapshot. The snapshot is probably more correct. |
|
Back to top |
|
|
bobef
Joined: 05 Jun 2005 Posts: 269
|
Posted: Wed Dec 05, 2007 2:58 pm Post subject: |
|
|
Thanks, it works now, but I'm getting only capital letters. Or maybe I am doing something wrong? |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Thu Dec 06, 2007 7:55 pm Post subject: |
|
|
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 |
|
|
bobef
Joined: 05 Jun 2005 Posts: 269
|
Posted: Fri Dec 07, 2007 2:40 am Post subject: |
|
|
Thanks! |
|
Back to top |
|
|
bobef
Joined: 05 Jun 2005 Posts: 269
|
Posted: Mon Dec 10, 2007 5:15 am Post subject: |
|
|
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 |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Thu Dec 13, 2007 7:21 am Post subject: |
|
|
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 |
|
|
bobef
Joined: 05 Jun 2005 Posts: 269
|
Posted: Thu Dec 13, 2007 7:54 am Post subject: |
|
|
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 |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Thu Dec 13, 2007 9:52 pm Post subject: |
|
|
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 |
|
|
|