column.propertyDesc_propertyID = COLUMN_ID;
column.propertyDesc_propertyID = column_id;
void createHandle () {	int [] outControl = new int [1];	int window = OS.GetControlOwner (parent.handle);	OS.CreateDataBrowserControl (window, null, OS.kDataBrowserListView, outControl);	if (outControl [0] == 0) error (SWT.ERROR_NO_HANDLES);	handle = outControl [0];	int selectionFlags = (style & SWT.SINGLE) != 0 ? OS.kDataBrowserSelectOnlyOne : OS.kDataBrowserCmdTogglesSelection;	OS.SetDataBrowserSelectionFlags (handle, selectionFlags);	short [] height = new short [1];	OS.GetDataBrowserListViewHeaderBtnHeight (handle, height);	headerHeight = height [0];	OS.SetDataBrowserListViewHeaderBtnHeight (handle, (short) 0);	OS.SetDataBrowserHasScrollBars (handle, (style & SWT.H_SCROLL) != 0, (style & SWT.V_SCROLL) != 0);	if ((style & SWT.FULL_SELECTION) != 0) {		OS.SetDataBrowserTableViewHiliteStyle (handle, OS.kDataBrowserTableViewFillHilite);	}	int position = 0;	if ((style & SWT.CHECK) != 0) {		DataBrowserListViewColumnDesc checkColumn = new DataBrowserListViewColumnDesc ();		checkColumn.headerBtnDesc_version = OS.kDataBrowserListViewLatestHeaderDesc;		checkColumn.propertyDesc_propertyID = CHECK_COLUMN_ID;		checkColumn.propertyDesc_propertyType = OS.kDataBrowserCheckboxType;		checkColumn.propertyDesc_propertyFlags = OS.kDataBrowserPropertyIsMutable;		//TODO - CHECK column size		checkColumn.headerBtnDesc_minimumWidth = CHECK_COLUMN_WIDTH;		checkColumn.headerBtnDesc_maximumWidth = CHECK_COLUMN_WIDTH;		checkColumn.headerBtnDesc_initialOrder = OS.kDataBrowserOrderIncreasing;		OS.AddDataBrowserListViewColumn (handle, checkColumn, position++);	}	DataBrowserListViewColumnDesc column = new DataBrowserListViewColumnDesc ();	column.headerBtnDesc_version = OS.kDataBrowserListViewLatestHeaderDesc;	column.propertyDesc_propertyID = COLUMN_ID;	column.propertyDesc_propertyType = OS.kDataBrowserCustomType;	column.propertyDesc_propertyFlags = OS.kDataBrowserListViewSelectionColumn | OS.kDataBrowserDefaultPropertyFlags;	column.headerBtnDesc_maximumWidth = 0x7fff;	column.headerBtnDesc_initialOrder = OS.kDataBrowserOrderIncreasing;	OS.AddDataBrowserListViewColumn (handle, column, position);	OS.SetDataBrowserTableViewNamedColumnWidth (handle, COLUMN_ID, (short) 0);	/*	* Feature in the Macintosh.  Scroll bars are not created until	* the data browser needs to draw them.  The fix is to force the scroll	* bars to be created by temporarily giving the widget a size, drawing	* it on a offscreen buffer to avoid flashes and then restoring it to	* size zero.	*/	int size = 50;	Rect rect = new Rect ();	rect.right = rect.bottom = (short) size;	OS.SetControlBounds (handle, rect);	int bpl = size * 4;	int [] gWorld = new int [1];	int data = OS.NewPtr (bpl * size);	OS.NewGWorldFromPtr (gWorld, OS.k3ARGBPixelFormat, rect, 0, 0, 0, data, bpl);	int [] curPort = new int [1];	int [] curGWorld = new int [1];	OS.GetGWorld (curPort, curGWorld);		OS.SetGWorld (gWorld [0], curGWorld [0]);	OS.DrawControlInCurrentPort (handle);	OS.SetGWorld (curPort [0], curGWorld [0]);	OS.DisposeGWorld (gWorld [0]);	OS.DisposePtr (data);	rect.right = rect.bottom = (short) 0;	OS.SetControlBounds (handle, rect);}