private boolean scroll_rightVisible() { if (topTabIndex < items.length - 1) {   CTabItem tabItem = items[items.length-1]; int tabStopX = tabItem.x + tabItem.width; Rectangle area = super.getClientArea(); if (topTabIndex > 0) { int scrollWidth = arrowBar.getSize().x; area.width -=  scrollWidth; } if (tabStopX > area.x + area.width - borderRight) { return true; }
private boolean scroll_rightVisible() {   if (items.length < 2) return false; Rectangle area = getClientArea(); int rightEdge = area.x + area.width; if (rightEdge <= 0) return false; if (topTabIndex > 0) { rightEdge -=  arrowBar.getSize().x;
private boolean scroll_rightVisible() {		if (topTabIndex < items.length - 1) { 		// only show Scroll buttons if there is more than one item		// and if we are not already at the last item		CTabItem tabItem = items[items.length-1];		int tabStopX = tabItem.x + tabItem.width;		Rectangle area = super.getClientArea();		if (topTabIndex > 0) {			int scrollWidth = arrowBar.getSize().x;			area.width -=  scrollWidth;		}		if (tabStopX > area.x + area.width - borderRight) {			return true;	// not all tabs fit in the client area		}	}	return false;}