Article:
 |
|
Inside Contextual Menu Items, Part 2
|
| Subject: |
|
Add an icon to contextual menu item |
| Date: |
|
2006-02-01 23:48:55 |
| From: |
|
piti118
|
|
|
Great Tutorial!
Do you know how to add an icon to a contextual menu item? I strongly believe that there is a way to do that. There are two places I found in which it might suggest a way to do that.
1)In the attribute record there is a flag for disableIcon. But I do not know how to set icon for such a thing though.
2)In Apple menu manager reference, I found that there is a function called
OSErr SetMenuItemIconHandle (
MenuRef inMenu,
SInt16 inItem,
UInt8 inIconType,
Handle inIconHandle
);
The bad news is that I do know know how to get hold of menuref of the contextual menu.
I also saw that some program ex:http://www.naratt.com/FolderContents.html. Has icon attach to the menu.
Thank you very much in advance,
Tee
|
Showing messages 1 through 1 of 1.
-
Add an icon to contextual menu item
2006-02-02 07:14:51
EGOSysDiz
[View]
Well, the link you show (to the Folder Contents CMI) certainly seems to show that this can be done. Unfortunately, it's not something I've actually done at this point.
But, I think that the functions you mention here are a great place to start!
As for getting hold of the menuref... there's gotta be a way, but I don't know it off the top of my head. Anyone else know this?