Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Trapping Other Keys


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-10-2008, 12:36 AM
Knows the basics
 
Join Date: May 2007
Posts: 86
Default Trapping Other Keys

Hi. How can I trap keys like letters, numbers, and symbols using the Hardware library? E.G. If I press the letter a how can the lib catch this and fire the HardKeyPressed event? Thanks.
Reply With Quote
  #2 (permalink)  
Old 05-10-2008, 06:07 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,845
Default

You should first change the form's KeyPreview property using the Door library (first example here):
Door library (Beta) - Special library

Afterwards use the form's KeyPress event to catch all keys.
Reply With Quote
  #3 (permalink)  
Old 05-10-2008, 06:35 AM
Knows the basics
 
Join Date: May 2007
Posts: 86
Default

Hi Erel, Thanks for your quick reply. Is there a way to do this if the program's form doesn't have the focus, like the Hardware library let's you do with the HardKeys and arrows? Thanks.
Reply With Quote
  #4 (permalink)  
Old 05-10-2008, 07:20 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,845
Default

Not that I can think of.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Game and keys pmu5757 Questions & Help Needed 13 06-01-2008 03:56 PM
Using hw keys in MS Smartphone TomasNM Questions & Help Needed 4 02-25-2008 03:30 PM
Soft Keys on Smart Phones? Louis Questions & Help Needed 1 02-21-2008 05:49 AM
Capturing the arrow keys on the desktop Louis Questions & Help Needed 1 08-31-2007 09:01 PM
Menu handling with hardware keys miklquick Questions & Help Needed 8 07-13-2007 06:58 PM


All times are GMT. The time now is 07:38 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0