🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.help
Article #47

GetMenuID returning 0 for dialog popups under 10.2?

#47
From: Jason Botwick
Date: Thu, 06 Feb 2003 11:51
12 lines
2016 bytes
When I call PMPrintDialog (or PMSessionPrintDialog) under OS 10.2.x, and
then handle the Carbon event generated when someone clicks on the "Printer"
popup, GetMenuID returns 0. Under 10.1.x, with the exact same code,
GetMenuID returns 128.

Is this a known behavior?

Is there some other way to determine that a menu event was generated from a
dialog popup so that I can ignore the event with an eventNotHandledErr?

Tks,
J 
Technical Details
Message-ID: <BA67B66C.7A48%jbotwick@nc.rr.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!newsflash.concordia.ca!snoopy.risq.qc.ca!chi1.webusenet.com!news.webusenet.com!cyclone1.gnilink.net!ngpeer.news.aol.com!cyclone.austin.rr.com!cyclone.tampabay.rr.com!news-post.tampabay.rr.com!twister.southeast.rr.com.POSTED!53ab2750!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,ad66d918239e01b9,start
X-Google-Attributes: gid10bcce,public
X-Google-Thread: 101ec9,ad66d918239e01b9,start
X-Google-Attributes: gid101ec9,public
X-Google-Thread: fed41,ad66d918239e01b9,start
X-Google-Attributes: gidfed41,public
X-Google-Thread: f635e,ad66d918239e01b9,start
X-Google-Attributes: gidf635e,public
X-Google-Thread: f98ee,ad66d918239e01b9,start
X-Google-Attributes: gidf98ee,public
X-Google-ArrivalTime: 2003-02-06 04:40:44 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!newsflash.concordia.ca!snoopy.risq.qc.ca!chi1.webusenet.com!news.webusenet.com!cyclone1.gnilink.net!ngpeer.news.aol.com!cyclone.austin.rr.com!cyclone.tampabay.rr.com!news-post.tampabay.rr.com!twister.southeast.rr.com.POSTED!53ab2750!not-for-mail
User-Agent: Microsoft-Entourage/10.0.0.1309
Subject: GetMenuID returning 0 for dialog popups under 10.2?
From: Jason Botwick <jbotwick@nc.rr.com>
Newsgroups: comp.sys.mac.programmer.help,comp.sys.mac.programmer.tools,comp.sys.mac.programmer.codewarrior,codewarrior.mac,comp.sys.mac.programmer.misc
Message-ID: <BA67B66C.7A48%jbotwick@nc.rr.com>
Mime-version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Lines: 13
Date: Thu, 06 Feb 2003 11:51:24 GMT
NNTP-Posting-Host: 24.25.15.213
X-Complaints-To: abuse@rr.com
X-Trace: twister.southeast.rr.com 1044532284 24.25.15.213 (Thu, 06 Feb 2003 06:51:24 EST)
NNTP-Posting-Date: Thu, 06 Feb 2003 06:51:24 EST
Organization: Road Runner - NC