Guys

I registered my application to respond to virtual key events in the
following way

SysNotifyRegister(iCard, ID, sysNotifyVirtualCharHandlingEvent, NULL,
sysNotifyNormalPriority, 0);

and yet nothing happens when I press a hardware button.

Any ides why?

I'v attached my PilotMain() function for you to have a look at.

"Patrick Lucas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Guys
>
> I have a program which puts an icon on the command bar when it is
activated
> and carries-out some action when the icon is clicked. It works perfectly!
>
> I now wish to have it carry out the same action when a hardware button is
> pressed. I immagine I have to register the program for the hardware button
> and then carry-out some action when that button is pressed.
>
> Can anyone here tell me what the functions that I need to call are?
>
> Many thanks
>
> Patrick
>
>
>
>


begin 666 PilotMain.c
M54EN=#,R(%!I;&]T36%I;BA526YT,[EMAIL PROTECTED]"!-96U0='(@8VUD4$)0+"!5
M26YT,38@;&%U;F-H1FQA9W,I('L-"@EI9B H8VUD(#T]('-Y<T%P<$QA=6YC
M:$-M9$YO<FUA;$QA=6YC:"D@>PT*"0E!<'!3=&%R="@I.PT*"0E!<'!%=F5N
M=$QO;W H*3L-"@D)07!P4W1O<"@I.PT*"[EMAIL PROTECTED] H*&-M9" ]/2!S
M>7-!<'!,875N8VA#;613>7-T96U297-E="[EMAIL PROTECTED]'[EMAIL PROTECTED]&-M9" 
]/2!S>7-!<'!,
M875N8VA#;613>6YC3F]T:69Y*2E[#0H)"55);G0Q-B!I0V%R9#L-"@D)3&]C
M86Q)1"!)1#L-"@D)4WES0W5R07!P1&%T86)A<V4H)FE#87)D+" F240I.PT*
M"0E3>7-.;W1I9GE296=I<W1E<BAI0V%R9"[EMAIL PROTECTED]('-Y<TYO=&EF>4UE;G5#
M;61"87)/<&5N179E;G0L($Y53$PL('-Y<TYO=&EF>4YO<FUA;%!R:6]R:71Y
M+" P*3L-"@D)4WES3F]T:69Y4F5G:7-T97(H:4-A<F0L($E$+"!S>7-.;W1I
M9GE6:7)T=6%L0VAA<DAA;F1L:6YG179E;G0L($Y53$PL('-Y<TYO=&EF>4YO
M<FUA;%!R:6]R:71Y+" P*3L-"@D)4WES3F]T:69Y4F5G:7-T97(H:4-A<F0L
M($E$+"!#341?4U!%04LL($Y53$PL('-Y<TYO=&EF>4YO<FUA;%!R:6]R:71Y
M+" P*3L-"@E](&5L<V4@:[EMAIL PROTECTED]&-M9" ]/2!S>7-!<'!,875N8VA#;61.;W1I
M9GDI('L-"@D)4W!E86M$871A(&1A=&$[#0H)"5)E860H)F1A=&$I.PT*"0EI
M9B H9&%T82YE;F%B;&4I('L-"@D)"55);G0S,B!M<V<@/2 H*%-Y<TYO=&EF
M>5!A<F%M5'EP92HI8VUD4$)0*2T^;F]T:69Y5'EP93L-"@D)"6EF("@H;7-G
M(#T]('-Y<TYO=&EF>4UE;G5#;61"87)/<&5N179E;G0I("8F(&1A=&$N86-T
M:79A=&5#;61"87(I('L-"@D)"0E526YT,38@:4QE;F=T:#L-"@D)"0E#;&EP
M8F]A<F1'971)=&5M*&-L:7!B;V%R9%1E>'0L("9I3&5N9W1H*3L-"@D)"0EI
M9B H:4QE;F=T:" ^(# I('L-"@D)"0D)365N=4-M9$)A<D%D9$)U='1O;BAM
M96YU0VUD0F%R3VY2:6=H="[EMAIL PROTECTED]&%S=&5":71M87 L(&UE;G5#;61"87)2
M97-U;'1.;W1I9GDL($--1%]34$5!2RP@(E-P96%K(BD[#0H)"0D)?0T*"0D)
M?2!E;'-E(&EF("AM<V<@/3T@<WES3F]T:69Y5FER='5A;$-H87)(86YD;&EN
M9T5V96YT("8F(&1A=&$N86-T:79A=&5"=71T;VXI('L-"@D)"0E70VAA<B!K
M97D@/2 H*%-Y<TYO=&EF>59I<G1U86Q#:&%R2&%N9&QI;F=4>7!E*BEC;610
M0E I+3YK97E$;W=N+F-H<CL-"@D)"0EI9B H:V5Y(#T](&1A=&$N8G5T=&]N
M*2![#0H)"0D)"[EMAIL PROTECTED]:69Y4&%R86U4>7!E*BEC;6100E I+3YH86YD
M;&5D([EMAIL PROTECTED];&EP8F]A<F0H9&%T82YS<&5E9"[EMAIL PROTECTED]&%T82YV;VQU;64I
M.PT*"0D)"7T-"@D)"[EMAIL PROTECTED] H;7-G(#T]($--1%]34$5!2RD@>PT*
M"0D)"5-P96%K0VQI<&)O87)D*&1A=&$N<W!E960L(&1A=&$N=F]L=6UE*3L-
M"@D)"0DH*%-Y<TYO=&EF>5!A<F%M5'EP92HI8VUD4$)0*2T^:&%N9&QE9" ]
:('1R=64[#0H)"0E]#0H)"7T-"@E]#0I]#0H`
`
end


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to