short [] selection = new short [2]; OS.GetControlData (handle, (short) OS.kHIComboBoxEditTextPart, OS.kControlEditTextSelectionTag, 4, selection, null); return new Point (selection [0], selection [1]);
ControlEditTextSelectionRec selection; if (this.selection != null) { selection = this.selection; } else { selection = new ControlEditTextSelectionRec (); OS.GetControlData (handle, (short) OS.kHIComboBoxEditTextPart, OS.kControlEditTextSelectionTag, 4, selection, null); } return new Point (selection.selStart, selection.selEnd);
public Point getSelection () {	checkWidget ();	if ((style & SWT.READ_ONLY) != 0) {		return new Point (0, getCharCount ());	} else {		short [] selection = new short [2];		OS.GetControlData (handle, (short) OS.kHIComboBoxEditTextPart, OS.kControlEditTextSelectionTag, 4, selection, null);		return new Point (selection [0], selection [1]);	}}