Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

An additional menu like PGP menu but icon crashes

0 views
Skip to first unread message

Cliff Huylebroeck

unread,
Dec 20, 2011, 10:46:16 AM12/20/11
to
I added a menu to the OS 9 Finder between Special and Help, like the PGP
menu.
This works.
It's a PPC appe extension.
When I quit the extension it removes the menu.

Then I tried to replace the menu title with and icon and add an icon to
every item.
This crashes.
Line 1111 exception or something.

Do I have to do something like InitXXX?
Now it doesn't do any toolbox init.

Is there a source code example that does something similar?
(Not sysmenu INIT, that's too old and doesn't do the same.)

Cliff Huylebroeck

unread,
Dec 27, 2011, 11:08:14 AM12/27/11
to
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.
0 new messages