🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pilot.programmer
Article #21

Re: Disabling the menu

#21
From: Ben Combee
Date: Wed, 30 Oct 2002 17:56
35 lines
2750 bytes
In article <3DBFC375.F79DF1D0@picsel.com>, donovan.winch@picsel.com 
says...
> Hey people,
> 
> I'm having some difficulty with trying to process events in the top left
> of the screen in a Palm OS 5 application.
> 
> The application doesn't have a Palm OS menu. I've removed the default
> one from the resource file, and tried commenting out the "if (!
> MenuHandleEvent(0, &event, &error))" line in the AppEventLoop()
> function, so events shouldn't even be passed to the menu event handler.

All you should really need to do is set the menu for your form to "0".  
This will remove the menu, and you shouldn't need to do anything else.

> I was hoping that this would allow me to use the whole screen (including
> the region usually used as the 'menu bar' at the top) for my own
> nefarious purposes, but any pen events in the top left (where the
> default menu is usually located) don't get passed to my main form as pen
> events (penDownEvent, penUpEvent, penMoveEvent, etc.).

This is really weird, as even with a menu, you usually get a pen event 
for a tap in the menu region, which MenuHandleEvent then turned into a 
menuEnterEvent, which then causes the menu to be displayed.

> Is there something else I should be doing to disable this area's use as
> a menu, or are there some 'special' events that I need to check for just
> in that area of the screen?

You seem to be doing things right... you might get better answers asking 
this on the palm-dev list, as its not a CodeWarrior specific question.
-- 
Ben Combee <bcombee@metrowerks.com>
CodeWarrior for Palm OS technical lead
Get help at http://palmoswerks.com/
Technical Details
Message-ID: <MPG.1829d90791f582aa9898ec@news.earthlink.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail
References: <3DBFC375.F79DF1D0@picsel.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10baa0,daf262c8c2cb4b9c
X-Google-Attributes: gid10baa0,public
X-Google-Thread: 10c638,daf262c8c2cb4b9c
X-Google-Attributes: gid10c638,public
X-Google-ArrivalTime: 2002-10-30 09:57:48 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail
From: Ben Combee <combee@techwood.org>
Newsgroups: pilot.programmer,codewarrior.palm
Subject: Re: Disabling the menu
Message-ID: <MPG.1829d90791f582aa9898ec@news.earthlink.net>
References: <3DBFC375.F79DF1D0@picsel.com>
Organization: Techwood Broadcasting Foundation
X-Newsreader: MicroPlanet Gravity v2.60
Lines: 35
Date: Wed, 30 Oct 2002 17:56:56 GMT
NNTP-Posting-Host: 24.206.100.29
X-Complaints-To: abuse@earthlink.net
X-Trace: newsread1.prod.itd.earthlink.net 1036000616 24.206.100.29 (Wed, 30 Oct 2002 09:56:56 PST)
NNTP-Posting-Date: Wed, 30 Oct 2002 09:56:56 PST