OS.kEventClassMenu, OS.kEventMenuMeasureItemWidth, OS.kEventClassMenu, OS.kEventMenuDrawItemContent,
void hookEvents () {	super.hookEvents ();	int menuProc = display.menuProc;	int [] mask = new int [] {		OS.kEventClassMenu, OS.kEventMenuClosed,		OS.kEventClassMenu, OS.kEventMenuOpening,		OS.kEventClassMenu, OS.kEventMenuTargetItem,		OS.kEventClassMenu, OS.kEventMenuMeasureItemWidth,		OS.kEventClassMenu, OS.kEventMenuDrawItemContent,	};	int menuTarget = OS.GetMenuEventTarget (handle);	OS.InstallEventHandler (menuTarget, menuProc, mask.length / 2, mask, 0, null);}