scrollHorizontalBar(offset - horizontalScrollOffset);
scrollHorizontal(offset - horizontalScrollOffset, true);
public void setHorizontalIndex(int offset) {	checkWidget();	int clientAreaWidth = getClientArea().width;	if (getCharCount() == 0) {		return;	}		if (offset < 0) {		offset = 0;	}	offset *= getHorizontalIncrement();	// allow any value if client area width is unknown or 0. 	// offset will be checked in resize handler.	// don't use isVisible since width is known even if widget 	// is temporarily invisible	if (clientAreaWidth > 0) {		int width = lineCache.getWidth();		// prevent scrolling if the content fits in the client area.		// align end of longest line with right border of client area		// if offset is out of range.		if (offset > width - clientAreaWidth) {			offset = Math.max(0, width - clientAreaWidth);		}	}	scrollHorizontalBar(offset - horizontalScrollOffset);}