Hotkeys..

  • Thread starter Thread starter PeterB
  • Start date Start date
P

PeterB

Ok, now when hotkeys are supported in CF maybe someone could guide me to a
informative site (or even page in VS .NET 2003 Docs) that explains how to
use them :-)

As I understand it, hotkeys is when someone press for example F15 (or Ctrl +
K) and you execute a certain event when that happens.

any ideas?

/ Peter
 
Hi Peter,

Full support for softkeys is under consideration for our next release.
However, for SP2, we did expand key events to cover all controls.
Therefore you may be able to get notification of a hotkey (or F15) press by
latching into the KeyDown event for all your controls and forms.

Hope this helps,
-Katie

This posting is provided "AS IS" with no warranties, and confers no rights.

***.Net Compact Framework Info***
Faq:
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.a
spx
QuickStarts: http://samples.gotdotnet.com/quickstart/CompactFramework/
Samples:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/CompactfxTechArt.asp

--------------------
| From: "PeterB" <[email protected]>
| Subject: Hotkeys..
| Date: Wed, 14 Jan 2004 16:55:28 +0100
| Lines: 12
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: h113n2fls34o264.telia.com 217.208.187.113
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.
phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:42996
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Ok, now when hotkeys are supported in CF maybe someone could guide me to a
| informative site (or even page in VS .NET 2003 Docs) that explains how to
| use them :-)
|
| As I understand it, hotkeys is when someone press for example F15 (or
Ctrl +
| K) and you execute a certain event when that happens.
|
| any ideas?
|
| / Peter
|
|
|
 
Hi Katie!

Thanks for your reply. I am not sure I understand this correctly. I was
thinking about this line in the release information for SP2.

- Support menu hotkeys on Pocket PC

Exactly what does that mean? I think I may have missed the word "menu" in
that line before. What is a meny hotkey really? I have been looking around
for information without success..

What I am looking for is what you mentioned below. I am using a Intermec
700C, and it doesn't have the Windows specific Ctrl, Alt and Shift keys.
Instead it has three "layers", Numeric, Alpha and Gold. I can remap keys
(for example in the gold layer) so that when the user press Gold + J a key
event of my liking is produced (say F15). Now I want a certain thing to
happen when F15 is pressed (some method to be called), is the only way to
produce this to add key events to ALL controls? I have a very large form
with 2 tabs, panels and about 100 controls.... I guess you see my problem
here? Or maybe I am overreacting... the thing is I either would need to add
the same eventhandler for all controls or one for each control. Don't know
which is best.

I have earlier asked about events that fall through to the parent control.
I.e. a textbox is focused, a key event is triggered, if the text box has
this event it consumes it. If the textbox doesn't have the event it falls
through to the parent control, e.g. a panel etc. etc. until the form (mother
control) is reached. Why isn't this possible in CF? What are the
complications?

Any suggestions would be appreciated!

thanks,

Peter
 
Hi Peter,

The 'Support for menu hotkeys on Pocket PC' refers to newer Pocket PC's
that contain a special 'context menu button'. Under older releases, there
were issues with this, resulting in a context menu not showing up as
expected for some controls when this button was pressed. Essentially, this
is a special button that's sending a WM_CONTEXTMENU message instead of (or
possibly in addition to) normal key events.

So one of the things we wanted to do for SP2 is implement KeyPreview - a
highly requested feature. This feature allows you to override just the
form's key events and receive events for all controls within the form
(which sounds like what you're looking for). Unfortunately, this would
require an object model change, which wasn't allowed in SP2 for
compatibility reasons. So we did the next best thing we could, which was
expose key events for more controls.

So, you can have a centralized event handler function to handle the
searching for the special F15 key, but you'll still have to wire this up to
the key event for each control. (I agree, less then ideal).

-Katie

This posting is provided "AS IS" with no warranties, and confers no rights.

***.Net Compact Framework Info***
Faq:
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.a
spx
QuickStarts: http://samples.gotdotnet.com/quickstart/CompactFramework/
Samples:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/CompactfxTechArt.asp

--------------------
| From: "Peter B" <[email protected]>
| References: <[email protected]>
<[email protected]>
| Subject: Re: Hotkeys..
| Date: Tue, 20 Jan 2004 11:19:56 +0100
| Lines: 103
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <esXj#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: h113n2fls34o264.telia.com 217.208.187.113
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.
phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:43477
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi Katie!
|
| Thanks for your reply. I am not sure I understand this correctly. I was
| thinking about this line in the release information for SP2.
|
| - Support menu hotkeys on Pocket PC
|
| Exactly what does that mean? I think I may have missed the word "menu" in
| that line before. What is a meny hotkey really? I have been looking around
| for information without success..
|
| What I am looking for is what you mentioned below. I am using a Intermec
| 700C, and it doesn't have the Windows specific Ctrl, Alt and Shift keys.
| Instead it has three "layers", Numeric, Alpha and Gold. I can remap keys
| (for example in the gold layer) so that when the user press Gold + J a key
| event of my liking is produced (say F15). Now I want a certain thing to
| happen when F15 is pressed (some method to be called), is the only way to
| produce this to add key events to ALL controls? I have a very large form
| with 2 tabs, panels and about 100 controls.... I guess you see my problem
| here? Or maybe I am overreacting... the thing is I either would need to
add
| the same eventhandler for all controls or one for each control. Don't know
| which is best.
|
| I have earlier asked about events that fall through to the parent control.
| I.e. a textbox is focused, a key event is triggered, if the text box has
| this event it consumes it. If the textbox doesn't have the event it falls
| through to the parent control, e.g. a panel etc. etc. until the form
(mother
| control) is reached. Why isn't this possible in CF? What are the
| complications?
|
| Any suggestions would be appreciated!
|
| thanks,
|
| Peter
|
|
| | > Hi Peter,
| >
| > Full support for softkeys is under consideration for our next release.
| > However, for SP2, we did expand key events to cover all controls.
| > Therefore you may be able to get notification of a hotkey (or F15) press
| by
| > latching into the KeyDown event for all your controls and forms.
| >
| > Hope this helps,
| > -Katie
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| >
| > ***.Net Compact Framework Info***
| > Faq:
| >
|
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.a
| > spx
| > QuickStarts: http://samples.gotdotnet.com/quickstart/CompactFramework/
| > Samples:
| >
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
| > tml/CompactfxTechArt.asp
| >
| > --------------------
| > | From: "PeterB" <[email protected]>
| > | Subject: Hotkeys..
| > | Date: Wed, 14 Jan 2004 16:55:28 +0100
| > | Lines: 12
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.compactframework
| > | NNTP-Posting-Host: h113n2fls34o264.telia.com 217.208.187.113
| > | Path:
| >
|
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.
| > phx.gbl
| > | Xref: cpmsftngxa07.phx.gbl
| > microsoft.public.dotnet.framework.compactframework:42996
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| > |
| > | Ok, now when hotkeys are supported in CF maybe someone could guide me
to
| a
| > | informative site (or even page in VS .NET 2003 Docs) that explains how
| to
| > | use them :-)
| > |
| > | As I understand it, hotkeys is when someone press for example F15 (or
| > Ctrl +
| > | K) and you execute a certain event when that happens.
| > |
| > | any ideas?
| > |
| > | / Peter
| > |
| > |
| > |
| >
|
|
|
 
Back
Top