[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How do I use MDEF's w/menu
- To: KHOSLA@AppleLink.Apple.COM (Khosla Consulting, Ashok Khosla,VCA)
- Subject: How do I use MDEF's w/menu
- From: STEVE.M@AppleLink.Apple.COM (Carbon-based, S Mitchell,APD)
- Date: 24 May 92 23:46 GMT
- Cc: INFO-MCL@CAMBRIDGE.APPLE.COM
To: Ashok Khosla KHOSLA
cc: info-mcl
From: Steve Mitchell
Date: 5/24/92
Sub: How do I use MDEF's w/menu obj
Ashok:
> I need to create a menu which shows items like command-shift-g,
> differently than command-g. My first thought was to create a
> custom MDEF, but how do I install a custom MDEF into MCL's
> menu-class?
Read Inside Macintosh vol I p362.
The MDEFs are accessible, eg:
? (rref (menu-handle *tools-menu*) :MenuInfo.menuProc :storage :handle)
#<A Mac Handle to resource 'MDEF'(0) : Unlocked, Size 4502 #x16380>
Substitute a handle to your own MDEF. If you do this (and the other
things mentioned in IM) before calling menu-install, it _should_ work.
_Steve