Display display= getDisplay(); OS.SetControlData(handle, OS.kControlEntireControl, OS.kControlUserPaneHitTestProcTag, 4, new int[]{display.fUserPaneHitTestProc});
Display display= getDisplay();  final int SIZEOF_INT= 4; int[] data= new int[] { display.fUserPaneHitTestProc }; OS.SetControlData(handle, OS.kControlEntireControl, OS.kControlUserPaneHitTestProcTag, data.length*SIZEOF_INT, data);
void hookEvents () {	super.hookEvents ();	Display display= getDisplay();			OS.SetControlData(handle, OS.kControlEntireControl, OS.kControlUserPaneHitTestProcTag, 4, new int[]{display.fUserPaneHitTestProc});	int[] mask= new int[] {		OS.kEventClassControl, OS.kEventControlDraw,	};	OS.InstallEventHandler(OS.GetControlEventTarget(handle), display.fControlProc, mask.length/2, mask, handle, null);	}