Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Planner.NET Key Events (Read 3795 times)
Andrew Taylor
Guest


Planner.NET Key Events
May 24th, 2006 at 2:25am
Print Post  
I'm trying to disable the arrow key input on a SingleMonth.  I've wired KeyDown and KeyPress, tried both e.Handled = true and e.SuppressKeyPress = true, but the arrow keys are still getting through.  Anyone done this?

TIA,

Andrew
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Planner.NET Key Events
Reply #1 - May 24th, 2006 at 4:45am
Print Post  
The keyboard interactions actually happen in the ProcessDialogKey method. You can override this method if you derive from Calendar and filter out the Left, Right, PageUp, Home, etc. keys.

Alternatively we can add a property that controls keyboard interactions with Planner.NET in the next release if that will suit you better.

Meppy
  
Back to top
 
IP Logged
 
Andrew Taylor
Guest


Re: Planner.NET Key Events
Reply #2 - May 26th, 2006 at 4:03pm
Print Post  
If you could add a property to disable keyboard navigation, that would be fantastic!  Maybe a future version?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Planner.NET Key Events
Reply #3 - May 29th, 2006 at 4:24am
Print Post  
You can download a prerelease of 3.3 from here:

https://mindfusion.org/_temp/_Planner.NET_33pre_trial3.zip

The new property Calendar.EnableKeyboard now can be used to disable keyboard navigation within the control.

Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint