OS.CreateEditUnicodeTextControl (0, rect, 0, false, null, outControl); editTextInset = computeInset (outControl [0]); OS.DisposeControl (outControl [0]);
editTextInset = new Rect (); int [] outMetric = new int [1]; OS.GetThemeMetric (OS.kThemeMetricFocusRectOutset, outMetric); int inset = outMetric [0]; OS.GetThemeMetric (OS.kThemeMetricEditTextFrameOutset, outMetric); inset += outMetric [0]; editTextInset.left = editTextInset.top = editTextInset.right = editTextInset.bottom = (short) inset;
void initializeInsets () {	int [] outControl = new int [1];	Rect rect = new Rect ();	rect.right = rect.bottom = (short) 200;		OS.CreatePushButtonControl (0, rect, 0, outControl);	buttonInset = computeInset (outControl [0]);	OS.DisposeControl (outControl [0]);		OS.CreateTabsControl (0, rect, (short)OS.kControlTabSizeLarge, (short)OS.kControlTabDirectionNorth, (short) 0, 0, outControl);	tabFolderNorthInset = computeInset (outControl [0]);	OS.DisposeControl (outControl [0]);	OS.CreateTabsControl (0, rect, (short)OS.kControlTabSizeLarge, (short)OS.kControlTabDirectionSouth, (short) 0, 0, outControl);	tabFolderSouthInset = computeInset (outControl [0]);	OS.DisposeControl (outControl [0]);		OS.CreateEditUnicodeTextControl (0, rect, 0, false, null, outControl);	editTextInset = computeInset (outControl [0]);	OS.DisposeControl (outControl [0]);		CGRect cgRect = new CGRect ();	cgRect.width = cgRect.height = 200;	int inAttributes = OS.kHIComboBoxAutoCompletionAttribute | OS.kHIComboBoxAutoSizeListAttribute;	OS.HIComboBoxCreate (cgRect, 0, null, 0, inAttributes, outControl);	comboInset = computeInset (outControl [0]);	 //FIXME - 	comboInset.bottom = comboInset.top;	OS.DisposeControl (outControl [0]);}