MenuID's are signed.

This commit is contained in:
Jack Jansen 2002-08-31 01:20:53 +00:00
parent fe9acdea8a
commit f94cadf456
1 changed files with 2 additions and 0 deletions

View File

@ -190,6 +190,8 @@ def do_inMenuBar(self, partcode, window, event):
self.checkmenus(None)
result = MenuToolbox.MenuSelect(where)
id = (result>>16) & 0xffff # Hi word
if id >= 0x8000:
id = -0x10000 + id
item = result & 0xffff # Lo word
self.do_rawmenu(id, item, window, event)