OS.InstallEventHandler(OS.GetControlEventTarget(handle), display.fControlProc, 1, new int[] { OS.kEventClassControl, OS.kEventControlDraw, }, handle, null);
int[] mask= new int[] { OS.kEventClassControl, OS.kEventControlDraw, }; OS.InstallEventHandler(OS.GetControlEventTarget(handle), display.fControlProc, mask.length/2, mask, handle, null);
void hookEvents () {	super.hookEvents ();    /* AW	int windowProc = getDisplay ().windowProc;	OS.XtAddCallback (handle, OS.XmNactivateCallback, windowProc, SWT.DefaultSelection);	OS.XtAddCallback (handle, OS.XmNvalueChangedCallback, windowProc, SWT.Modify);	OS.XtAddCallback (handle, OS.XmNmodifyVerifyCallback, windowProc, SWT.Verify);    */	Display display= getDisplay();			OS.SetControlData(handle, OS.kControlEntireControl, OS.kControlUserPaneHitTestProcTag, 4, new int[]{display.fUserPaneHitTestProc});	OS.InstallEventHandler(OS.GetControlEventTarget(handle), display.fControlProc, 1,		new int[] {			OS.kEventClassControl, OS.kEventControlDraw,		},		handle, null);}