PDA

View Full Version : how to get event of sliding keyboard?


JGUI
10-05-2006, 08:14 PM
HTC Wizard and so....

recognizes hardware keyboard slide out and changes screen orientation.
should be there some hardware switcher.

if so:
how to determine this swither status and use it in code,
for example to to turn the power on when keyboard is sliding out?

3waygeek
10-05-2006, 10:48 PM
Well, when the screen orientation changes all top-level windows should get a WM_SETTINGCHANGE message. Can't think of anything else off the top of my head.

ZeBoxx
10-05-2006, 11:21 PM
have you tried...
http://blogs.msdn.com/onoj/archive/2004/03/12/88865.aspx

Not sure if there's an event (the keyboard driver may simply be calling all the required code), but the call in that article should hopefully tell you whether the keyboard is slid out or not; means you'd have to check periodically, I guess.

JGUI
11-05-2006, 12:53 AM
thanks for suggestions, but it did not helped.

I can recognize if the keyboard slide out/in, by the registry key.
nothing special hard.

but this registry key is defined at the moment when keyboard slide in/out but only when the poer is running. when you change keyboard when device sleep (power off), then when you turn the power up, you observe a second delay before the scrfeen orientation changes and refreshes.

I want to write appliaction which will turn the power up when the keyboard will slide out. I know how to write application which runs even when the device sleeps, but I need any event of keyboard changes.

VOODOOS!L
14-06-2006, 10:06 AM
once you figured out how to correctly detect the keyboard sliding out, maybe you could also make a little application which hides the keyboard in all application once the keyboard is open (for example with a keyboard of zero pixels high) When the keyboard is closed, the last used or standard keyboard should be made active again...


CIAO!
VOODOOS!L

hdubli
14-06-2006, 07:08 PM
You all will get surprised...but the screen rotation is hrdware dependent and what hardware..is a junction where two magnets meets and the force causes the thing to rotate...similar to the design of Nokia 6800...one can veryfy by using a magnet...and many of our friends hv experienced with the magnetic cover which comes with the handset..