int accessibilityProc = display.accessibilityProc; mask = new int [] { OS.kEventClassAccessibility, OS.kEventAccessibleGetChildAtPoint, OS.kEventClassAccessibility, OS.kEventAccessibleGetAllAttributeNames, OS.kEventClassAccessibility, OS.kEventAccessibleGetNamedAttribute, }; OS.InstallEventHandler (controlTarget, accessibilityProc, mask.length / 2, mask, handle, null);
void hookEvents () {	super.hookEvents ();	int controlProc = display.controlProc;	int [] mask = new int [] {		OS.kEventClassControl, OS.kEventControlActivate,		OS.kEventClassControl, OS.kEventControlApplyBackground,		OS.kEventClassControl, OS.kEventControlBoundsChanged,		OS.kEventClassControl, OS.kEventControlClick,		OS.kEventClassControl, OS.kEventControlContextualMenuClick,		OS.kEventClassControl, OS.kEventControlDeactivate,		OS.kEventClassControl, OS.kEventControlDraw,		OS.kEventClassControl, OS.kEventControlHit,		OS.kEventClassControl, OS.kEventControlSetCursor,		OS.kEventClassControl, OS.kEventControlSetFocusPart,		OS.kEventClassControl, OS.kEventControlGetFocusPart,		OS.kEventClassControl, OS.kEventControlTrack,		OS.kEventClassControl, OS.kEventControlGetClickActivation,	};	int controlTarget = OS.GetControlEventTarget (handle);	OS.InstallEventHandler (controlTarget, controlProc, mask.length / 2, mask, handle, null);	int helpProc = display.helpProc;	OS.HMInstallControlContentCallback (handle, helpProc);	int colorProc = display.colorProc;	OS.SetControlColorProc (handle, colorProc);}