int indicatorType = OS.XmONE_OF_MANY; if ((style & SWT.CHECK) != 0) indicatorType = OS.XmN_OF_MANY; int [] argList2 = {OS.XmNindicatorType, indicatorType}; OS.XtSetValues (handle, argList2, argList2.length / 2);
void createHandle (int index) {	state |= HANDLE;	int parentHandle = parent.handle;	int [] argList1 = {OS.XmNchildren, 0, OS.XmNnumChildren, 0};	OS.XtGetValues (parentHandle, argList1, argList1.length / 2);	if (index != OS.XmLAST_POSITION && argList1 [1] != 0) {		int [] handles = new int [argList1 [3]];		OS.memmove (handles, argList1 [1], argList1 [3] * 4);		int i = 0, count = 0;		while (i < argList1 [3]) {			if (OS.XtIsManaged (handles [i])) {				if (index == count) break;				count++;			}			i++;		}		if (index != count) error (SWT.ERROR_INVALID_RANGE);		index = i;	}	if ((style & SWT.SEPARATOR) != 0) {		int [] argList = {			OS.XmNancestorSensitive, 1,			OS.XmNorientation, (parent.style & SWT.BAR) != 0 ? OS.XmVERTICAL : OS.XmHORIZONTAL,			OS.XmNpositionIndex, index,		};		handle = OS.XmCreateSeparatorGadget (parentHandle, null, argList, argList.length / 2);		if (handle == 0) error (SWT.ERROR_NO_HANDLES);		return;	}	int [] argList = {		OS.XmNancestorSensitive, 1,		OS.XmNpositionIndex, index,	};	if ((style & SWT.PUSH) != 0) {		handle = OS.XmCreatePushButtonGadget (parentHandle, null, argList, argList.length / 2);		if (handle == 0) error (SWT.ERROR_NO_HANDLES);		return;	}	if ((style & (SWT.CHECK | SWT.RADIO)) != 0) {		handle = OS.XmCreateToggleButtonGadget (parentHandle, null, argList, argList.length / 2);		if (handle == 0) error (SWT.ERROR_NO_HANDLES);		return;	}	handle = OS.XmCreateCascadeButtonGadget (parentHandle, null, argList, argList.length / 2);	if (handle == 0) error (SWT.ERROR_NO_HANDLES);}