🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pilot.programmer
Article #19

Re: CAPS button on Tungsten-C

#19
From: Elvin Ng
Date: Thu, 24 Jul 2003 16:11
29 lines
2439 bytes
Hi,
Shift and cap key are a kind of "control keys" and they are not in the ASCII
chart, I believe. You won't be able to get a keydownevent for them as they
aren't sent to the target because there's no point for the field to receive
a shift state.

But you should be able to get the cap/shift states by calling the graffiti
function GrfGetState for grfTempShiftUpper, if the key from the keyboard
changes the graffiti shift state. You might even need to manupulate some of
the states if you want to turn off a shift in your app.

elv

"Jean-Fran�ois Bri�re" <jfbriere@myway.com> wrote in message
news:5edaa9b1.0307231219.73a85a96@posting.google.com...
> In a Palm application, how can I intercept the CAPS button
> being pressed on a Tungsten-C?
>
> Is it with a notification? Or else?
> It doesnt seem to be with the event manager.
> When I read all the events coming from the event loop
> ( with EvtGetEvent(&event, 1) ),
> pressing the CAPS button does not generate any event in my app!
>
> It must be possible: in the Memo Pad app, pressing the CAPS button
> change the up-arrow in the right bottom corner.
>
> Thanks!
> Jean-Francois
Technical Details
Message-ID: <bfove1$ii2$1@reader01.singnet.com.sg>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!crtntx1-snh1.gtei.net!crtntx1-snf1.gtei.net!news.gtei.net!columbine.singnet.com.sg!not-for-mail
References: <5edaa9b1.0307231219.73a85a96@posting.google.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 109d41,62cb78a4cb17b388
X-Google-Attributes: gid109d41,public
X-Google-Thread: 10c638,62cb78a4cb17b388
X-Google-Attributes: gid10c638,public
X-Google-Thread: f635a,62cb78a4cb17b388
X-Google-Attributes: gidf635a,public
X-Google-Thread: 10baa0,62cb78a4cb17b388
X-Google-Attributes: gid10baa0,public
X-Google-ArrivalTime: 2003-07-24 09:11:26 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!crtntx1-snh1.gtei.net!crtntx1-snf1.gtei.net!news.gtei.net!columbine.singnet.com.sg!not-for-mail
From: "Elvin Ng" <darkelv@yahoo.com>
Newsgroups: pilot.programmer,pilot.programmer.codewarrior,pilot.programmer.gcc,codewarrior.palm
Subject: Re: CAPS button on Tungsten-C
Date: Fri, 25 Jul 2003 00:11:15 +0800
Organization: Singapore Telecommunications Ltd
Lines: 31
Message-ID: <bfove1$ii2$1@reader01.singnet.com.sg>
References: <5edaa9b1.0307231219.73a85a96@posting.google.com>
NNTP-Posting-Host: 203.125.46.123
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000