short [] selection = new short [2]; OS.GetControlData (handle, (short)OS.kHIComboBoxEditTextPart, OS.kControlEditTextSelectionTag, 4, selection, null); selection [1] = selection [0]; OS.SetControlData (handle, OS.kHIComboBoxEditTextPart, OS.kControlEditTextSelectionTag, 4, selection);
Point selection = getSelection (); selection.y = selection.x; setSelection (selection);
public void clearSelection () {	checkWidget();	if ((style & SWT.READ_ONLY) == 0) {		short [] selection = new short [2];		OS.GetControlData (handle, (short)OS.kHIComboBoxEditTextPart, OS.kControlEditTextSelectionTag, 4, selection, null);		selection [1] = selection [0];		OS.SetControlData (handle, OS.kHIComboBoxEditTextPart, OS.kControlEditTextSelectionTag, 4, selection);	}}