Logged in as Guest   Sun, Oct. 21st, 12:04 PM.      
 
 
Web hazelware.luggle.com
 

Handheld Programming Tip #5
Ok, so I promised to give a non-Palm tip this time, and I'm going to deliver!
This tip has to do with intercepting navigation events on Smartphone 2002+ devices. There are two different methods of intercepting them, and both occur during a WM_KEYDOWN message.
Method 1: If you are willing to invest in using the GAPI SDK, you simply compare your wParam from your WM_KEYDOWN message against the GXKeyList that you get when you call GXGetDefaultKeys(GX_NORMALKEYS).
Method 2: During your WM_KEYDOWN message, compare your wParam against the normal Windows virtual keys (VK_UP, VK_DOWN, etc.).
Now, you may be wondering why you would ever use method 1, and the short answer is that on devices with both navigation buttons as well as full keyboards, you can end up with id collision. For example, if you are comparing against VK_RETURN, on some devices you may not be able to distinguish between the start/select key and the enter key.
Submitted by bosshogg on Wednesday the 31st 1970f December 1969, at 04:00

 
Recent Entries:
I'm BACK!!!!!!
Code Monkey
Cool 3D Code Snippet From My Former Life
YouTube: The Revival of the Internet Time Killer
WhereMate Released
Palmasaurus Released As Freeware
VM-Plus Beta
Handspring Undocumented APIs
Posting Malaise
PhoneShield Released!!!

Archive:
October - 2007
August - 2007
July - 2007
June - 2007
May - 2007
April - 2007
December - 2006
November - 2006
September - 2006
August - 2006
July - 2006
March - 2006
February - 2006
January - 2006
December - 2005
November - 2005
October - 2005
September - 2005
August - 2005
July - 2005
June - 2005
May - 2005
April - 2005
February - 2005
January - 2005
December - 2004
November - 2004
October - 2004
September - 2004
August - 2004
July - 2004
June - 2004
May - 2004
April - 2004
March - 2004