Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!news.bbs-scene.org!macgui.com!gastacara From: gastacara@macgui.com (Cliff Huylebroeck) Newsgroups: comp.sys.mac.programmer.help Subject: Re: An additional menu like PGP menu but icon crashes Date: Tue, 27 Dec 2011 16:08:14 +0000 (UTC) Organization: Mac GUI Lines: 20 Message-ID: References: NNTP-Posting-Host: gunshin.wiredns.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.bbs-scene.org 1325002094 11957 74.119.145.48 (27 Dec 2011 16:08:14 GMT) X-Complaints-To: abuse@bbs-scene.org NNTP-Posting-Date: Tue, 27 Dec 2011 16:08:14 +0000 (UTC) User-Agent: Mac GUI City Usenet Posting Xref: x330-a1.tempe.blueboxinc.net comp.sys.mac.programmer.help:102 I found a newer version of sysmenu INIT (1.4). I changed that. It works. An icon can be placed in the title: Load an icon suite with small icons. Use a title that starts with character 1 followed by the address of the icon suite handle when you create the menu in the DrawMenuBar patch. An icon can be placed in an item in 2 ways: 1) Paste a color icon (cicn resource) into the System. Its resource ID has to be between 257 and 511, but not 260 or 301-307. Subtract 256 and then use SetItemIcon when you create the menu in the DrawMenuBar patch. This will draw a large icon. 2) Load an icon suite. Use SetMenuItemIconHandle when you create the menu in the DrawMenuBar patch. This will draw a small icon.