亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? slider.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
	if ((state & DISABLED) != 0) {		if (OS.IsWinCE) {			OS.EnableWindow (handle, false);		} else {			OS.EnableScrollBar (handle, OS.SB_CTL, OS.ESB_DISABLE_BOTH);		}	}		/*	* Bug in Windows.  If the thumb is resized when it has focus,	* the flashing cursor that is used to show that the scroll bar has	* focus is not moved.  The fix is to post a fake WM_SETFOCUS to	* get the scroll bar to recompute the size of the flashing cursor.	*/	if (OS.GetFocus () == handle) {		OS.PostMessage (handle, OS.WM_SETFOCUS, 0, 0);	}}/** * Sets the minimum value. If this value is negative or greater * than or equal to the maximum, the value is ignored. If necessary, * first the thumb and then the selection are adjusted to fit within * the new range. * * @param value the new minimum * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public void setMinimum (int value) {	checkWidget ();	if (value < 0) return;	SCROLLINFO info = new SCROLLINFO ();	info.cbSize = SCROLLINFO.sizeof;	info.fMask = OS.SIF_RANGE | OS.SIF_DISABLENOSCROLL;	OS.GetScrollInfo (handle, OS.SB_CTL, info);	if (info.nMax - value - info.nPage < 1) return;	info.nMin = value;	OS.SetScrollInfo (handle, OS.SB_CTL, info, true);	/*	* Feature in Windows.  Using SIF_DISABLENOSCROLL,	* SetScrollInfo () can change enabled and disabled	* state of the scroll bar causing a scroll bar that	* was disabled by the application to become enabled.	* The fix is to disable the scroll bar (again) when	* the application has disabled the scroll bar.	*/	if ((state & DISABLED) != 0) {		if (OS.IsWinCE) {			OS.EnableWindow (handle, false);		} else {			OS.EnableScrollBar (handle, OS.SB_CTL, OS.ESB_DISABLE_BOTH);		}	}		/*	* Bug in Windows.  If the thumb is resized when it has focus,	* the flashing cursor that is used to show that the scroll bar has	* focus is not moved.  The fix is to post a fake WM_SETFOCUS to	* get the scroll bar to recompute the size of the flashing cursor.	*/	if (OS.GetFocus () == handle) {		OS.PostMessage (handle, OS.WM_SETFOCUS, 0, 0);	}}/** * Sets the amount that the receiver's value will be * modified by when the page increment/decrement areas * are selected to the argument, which must be at least * one. * * @param value the page increment (must be greater than zero) * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public void setPageIncrement (int value) {	checkWidget ();	if (value < 1) return;	pageIncrement = value;}/** * Sets the single <em>selection</em> that is the receiver's * value to the argument which must be greater than or equal * to zero. * * @param value the new selection (must be zero or greater) * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public void setSelection (int value) {	checkWidget ();	SCROLLINFO info = new SCROLLINFO ();	info.cbSize = SCROLLINFO.sizeof;	info.fMask = OS.SIF_POS;	info.nPos = value;	OS.SetScrollInfo (handle, OS.SB_CTL, info, true);}/** * Sets the size of the receiver's thumb relative to the * difference between its maximum and minimum values.  This new * value will be ignored if it is less than one, and will be * clamped if it exceeds the receiver's current range. * * @param value the new thumb value, which must be at least one and not * larger than the size of the current range * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public void setThumb (int value) {	checkWidget ();	/* Position the thumb */	if (value < 1) return;	SCROLLINFO info = new SCROLLINFO ();	info.cbSize = SCROLLINFO.sizeof;	info.fMask = OS.SIF_PAGE | OS.SIF_RANGE | OS.SIF_DISABLENOSCROLL;	OS.GetScrollInfo (handle, OS.SB_CTL, info);	info.nPage = value;	if (info.nPage != 0) info.nPage++;	OS.SetScrollInfo (handle, OS.SB_CTL, info, true);			/*	* Feature in Windows.  Using SIF_DISABLENOSCROLL,	* SetScrollInfo () can change enabled and disabled	* state of the scroll bar causing a scroll bar that	* was disabled by the application to become enabled.	* The fix is to disable the scroll bar (again) when	* the application has disabled the scroll bar.	*/	if ((state & DISABLED) != 0) {		if (OS.IsWinCE) {			OS.EnableWindow (handle, false);		} else {			OS.EnableScrollBar (handle, OS.SB_CTL, OS.ESB_DISABLE_BOTH);		}	}		/*	* Bug in Windows.  If the thumb is resized when it has focus,	* the flashing cursor that is used to show that the scroll bar has	* focus is not moved.  The fix is to post a fake WM_SETFOCUS to	* get the scroll bar to recompute the size of the flashing cursor.	*/	if (OS.GetFocus () == handle) {		OS.PostMessage (handle, OS.WM_SETFOCUS, 0, 0);	}}/** * Sets the receiver's selection, minimum value, maximum * value, thumb, increment and page increment all at once. * <p> * Note: This is equivalent to setting the values individually * using the appropriate methods, but may be implemented in a  * more efficient fashion on some platforms. * </p> * * @param selection the new selection value * @param minimum the new minimum value * @param maximum the new maximum value * @param thumb the new thumb value * @param increment the new increment value * @param pageIncrement the new pageIncrement value * * @exception SWTException <ul> *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */public void setValues (int selection, int minimum, int maximum, int thumb, int increment, int pageIncrement) {	checkWidget ();	if (minimum < 0) return;	if (maximum < 0) return;	if (thumb < 1) return;	if (increment < 1) return;	if (pageIncrement < 1) return;	this.increment = increment;	this.pageIncrement = pageIncrement;	SCROLLINFO info = new SCROLLINFO ();	info.cbSize = SCROLLINFO.sizeof;	info.fMask = OS.SIF_POS | OS.SIF_PAGE | OS.SIF_RANGE | OS.SIF_DISABLENOSCROLL;	info.nPos = selection;	info.nMin = minimum;	info.nMax = maximum;	info.nPage = thumb;	if (info.nPage != 0) info.nPage++;	OS.SetScrollInfo (handle, OS.SB_CTL, info, true);			/*	* Feature in Windows.  Using SIF_DISABLENOSCROLL,	* SetScrollInfo () can change enabled and disabled	* state of the scroll bar causing a scroll bar that	* was disabled by the application to become enabled.	* The fix is to disable the scroll bar (again) when	* the application has disabled the scroll bar.	*/	if ((state & DISABLED) != 0) {		if (OS.IsWinCE) {			OS.EnableWindow (handle, false);		} else {			OS.EnableScrollBar (handle, OS.SB_CTL, OS.ESB_DISABLE_BOTH);		}	}		/*	* Bug in Windows.  If the thumb is resized when it has focus,	* the flashing cursor that is used to show that the scroll bar has	* focus is not moved.  The fix is to post a fake WM_SETFOCUS to	* get the scroll bar to recompute the size of the flashing cursor.	*/	if (OS.GetFocus () == handle) {		OS.PostMessage (handle, OS.WM_SETFOCUS, 0, 0);	}}int widgetExtStyle () {	/*	* Bug in Windows.  If a scroll bar control is given a border,	* dragging the scroll bar thumb eats away parts of the border 	* while the thumb is dragged.  The fix is to clear border for	* all scroll bars.	*/	int bits = super.widgetExtStyle ();	if ((style & SWT.BORDER) != 0) bits &= ~OS.WS_EX_CLIENTEDGE;	return bits;}int widgetStyle () {	int bits = super.widgetStyle () | OS.WS_TABSTOP;	/*	* Bug in Windows.  If a scroll bar control is given a border,	* dragging the scroll bar thumb eats away parts of the border 	* while the thumb is dragged.  The fix is to clear WS_BORDER.	*/	if ((style & SWT.BORDER) != 0) bits &= ~OS.WS_BORDER;	if ((style & SWT.HORIZONTAL) != 0) return bits | OS.SBS_HORZ;	return bits | OS.SBS_VERT;}TCHAR windowClass () {	return ScrollBarClass;}int windowProc () {	return ScrollBarProc;}LRESULT WM_KEYDOWN (int wParam, int lParam) { 	LRESULT result = super.WM_KEYDOWN (wParam, lParam); 	if (result != null) return result; 	if ((style & SWT.VERTICAL) != 0) return result; 	 	/* 	* Bug in Windows.  When a horizontal scroll bar is mirrored, 	* the native control does not correctly swap the arrow keys. 	* The fix is to swap them before calling the scroll bar window 	* proc. 	*  	* NOTE: This fix is not ideal.  It breaks when the bug is fixed 	* in the operating system. 	*/	if ((style & SWT.MIRRORED) != 0) {	 	switch (wParam) {	 		case OS.VK_LEFT: 			case OS.VK_RIGHT: {				int key = wParam == OS.VK_LEFT ? OS.VK_RIGHT : OS.VK_LEFT;				int code = callWindowProc (OS.WM_KEYDOWN, key, lParam);	 			return new LRESULT (code);	 		}	 	}	} 	return result;} LRESULT WM_LBUTTONDBLCLK (int wParam, int lParam) {		/*	* Feature in Windows.  For some reason, capturing	* the mouse after processing WM_LBUTTONDBLCLK for the	* widget interferes with the normal mouse processing	* for the widget.  The fix is to avoid the automatic	* mouse capture.	*/	/*	* Feature in Windows.  Windows uses the WS_TABSTOP	* style for the scroll bar to decide that focus	* should be set during WM_LBUTTONDBLCLK.  This is	* not the desired behavior.  The fix is to clear	* and restore WS_TABSTOP so that Windows will not	* assign focus.	*/	int hwndCapture = OS.GetCapture ();	int oldBits = OS.GetWindowLong (handle, OS.GWL_STYLE);	int newBits = oldBits & ~OS.WS_TABSTOP;	OS.SetWindowLong (handle, OS.GWL_STYLE, newBits);		LRESULT result = super.WM_LBUTTONDBLCLK (wParam, lParam);	OS.SetWindowLong (handle, OS.GWL_STYLE, oldBits);	if (OS.GetCapture () != hwndCapture) OS.SetCapture (hwndCapture);		/*	* Feature in Windows.  Windows runs a modal message loop	* when the user drags a scroll bar that terminates when	* it sees an WM_LBUTTONUP.  Unfortunately the WM_LBUTTONUP	* is consumed.  The fix is to send a fake mouse up.	*/		sendMouseEvent (SWT.MouseUp, 1, OS.WM_LBUTTONUP, wParam, lParam);		return result;}LRESULT WM_LBUTTONDOWN (int wParam, int lParam) {		/*	* Feature in Windows.  For some reason, capturing	* the mouse after processing WM_LBUTTONDOWN for the	* widget interferes with the normal mouse processing	* for the widget.  The fix is to avoid the automatic	* mouse capture.	*/	/*	* Feature in Windows.  Windows uses the WS_TABSTOP	* style for the scroll bar to decide that focus	* should be set during WM_LBUTTONDOWN.  This is	* not the desired behavior.  The fix is to clear	* and restore WS_TABSTOP so that Windows will not	* assign focus.	*/	int hwndCapture = OS.GetCapture ();	int oldBits = OS.GetWindowLong (handle, OS.GWL_STYLE);	int newBits = oldBits & ~OS.WS_TABSTOP;	OS.SetWindowLong (handle, OS.GWL_STYLE, newBits);		LRESULT result = super.WM_LBUTTONDOWN (wParam, lParam);	OS.SetWindowLong (handle, OS.GWL_STYLE, oldBits);	if (OS.GetCapture () != hwndCapture) OS.SetCapture (hwndCapture);		/*	* Feature in Windows.  Windows runs a modal message loop	* when the user drags a scroll bar that terminates when	* it sees an WM_LBUTTONUP.  Unfortunately the WM_LBUTTONUP	* is consumed.  The fix is to send a fake mouse up.	*/		sendMouseEvent (SWT.MouseUp, 1, OS.WM_LBUTTONUP, wParam, lParam);	return result;}LRESULT wmScrollChild (int wParam, int lParam) {	/* Do nothing when scrolling is ending */	int code = wParam & 0xFFFF;	if (code == OS.SB_ENDSCROLL) return null;	/* Move the thumb */	Event event = new Event ();	SCROLLINFO info = new SCROLLINFO ();	info.cbSize = SCROLLINFO.sizeof;	info.fMask = OS.SIF_TRACKPOS | OS.SIF_POS | OS.SIF_RANGE;	OS.GetScrollInfo (handle, OS.SB_CTL, info);	info.fMask = OS.SIF_POS;	switch (code) {		case OS.SB_THUMBPOSITION:			/*			* Do not set the detail field to DRAG to			* indicate that the dragging has ended.			*/			info.nPos = info.nTrackPos;			break;		case OS.SB_THUMBTRACK:			event.detail = SWT.DRAG;			info.nPos = info.nTrackPos;			break;		case OS.SB_TOP:			event.detail = SWT.HOME;			info.nPos = info.nMin;			break;		case OS.SB_BOTTOM:			event.detail = SWT.END;			info.nPos = info.nMax;			break;		case OS.SB_LINEDOWN:			event.detail = SWT.ARROW_DOWN;			info.nPos += increment;			break;		case OS.SB_LINEUP:			event.detail = SWT.ARROW_UP;			info.nPos = Math.max (info.nMin, info.nPos - increment);			break;		case OS.SB_PAGEDOWN:			event.detail = SWT.PAGE_DOWN;			info.nPos += pageIncrement;			break;		case OS.SB_PAGEUP:			event.detail = SWT.PAGE_UP;			info.nPos = Math.max (info.nMin, info.nPos - pageIncrement);			break;	}	OS.SetScrollInfo (handle, OS.SB_CTL, info, true);		/*	* Feature in Windows.  Windows runs a modal message	* loop when the user drags a scroll bar.  This means	* that selection event must be sent because WM_HSCROLL	* and WM_VSCROLL are sent from the modal message loop	* so that they are delivered during inside the loop.	*/	sendEvent (SWT.Selection, event);	// the widget could be destroyed at this point	return null;}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人欧美一区二区三区视频网页 | 蜜臀久久99精品久久久画质超高清| 99久久久久久| 中文字幕一区二区三区在线播放| 99国内精品久久| 亚洲一区免费视频| 欧美一区中文字幕| 国产一区二区免费在线| 日本一区免费视频| 91麻豆高清视频| 亚欧色一区w666天堂| 精品久久五月天| av高清久久久| 日日嗨av一区二区三区四区| 日韩精品最新网址| 成人国产免费视频| 亚洲最新在线观看| 日韩欧美在线1卡| 不卡一区二区三区四区| 婷婷国产在线综合| 国产日韩欧美精品一区| 91成人在线观看喷潮| 奇米精品一区二区三区在线观看| 久久久久久**毛片大全| 色综合天天在线| 蜜芽一区二区三区| 日韩美女视频一区二区| 欧美浪妇xxxx高跟鞋交| 国产一区欧美二区| 亚洲一卡二卡三卡四卡| 欧美成人女星排名| 色猫猫国产区一区二在线视频| 美女一区二区在线观看| 日韩理论在线观看| 欧美成人video| 一本大道av伊人久久综合| 久久精品国产**网站演员| 综合婷婷亚洲小说| 久久久美女艺术照精彩视频福利播放| 色噜噜狠狠成人中文综合| 久久99国产精品麻豆| 亚洲黄色片在线观看| 久久综合色一综合色88| 欧美日韩成人在线一区| 成人精品国产免费网站| 秋霞影院一区二区| 亚洲精品v日韩精品| 国产亚洲精品资源在线26u| 6080国产精品一区二区| 91麻豆免费看片| 国产不卡在线播放| 免播放器亚洲一区| 日韩制服丝袜先锋影音| 亚洲欧美色一区| 国产精品免费视频一区| 久久综合久久综合亚洲| 欧美精品v国产精品v日韩精品 | 日本一区免费视频| 精品国产凹凸成av人导航| 欧美日本视频在线| 色菇凉天天综合网| 色综合色综合色综合| 成人黄色软件下载| 成人免费高清在线| 粉嫩一区二区三区在线看| 狠狠色综合色综合网络| 美国十次了思思久久精品导航| 亚洲综合在线视频| 一级日本不卡的影视| 亚洲黄色小说网站| 亚洲综合久久久| 一区二区三区日韩欧美| 亚洲男人的天堂av| 日韩伦理电影网| 亚洲人成在线播放网站岛国| 亚洲欧洲国产日本综合| 国产精品久久99| 亚洲精品乱码久久久久久黑人| 亚洲天堂福利av| 亚洲一卡二卡三卡四卡无卡久久| 亚洲在线视频网站| 午夜精品久久久久久不卡8050| 悠悠色在线精品| 亚洲丶国产丶欧美一区二区三区| 午夜久久电影网| 蜜臀av一区二区在线观看| 麻豆精品在线观看| 国产老女人精品毛片久久| 国产一区二区免费视频| 成人午夜在线免费| 91香蕉国产在线观看软件| 色婷婷久久久综合中文字幕| 欧美性生活大片视频| 91精品国产欧美一区二区18 | 久久―日本道色综合久久| 26uuu亚洲| 国产精品久久看| 一区二区三区精密机械公司| 日韩va亚洲va欧美va久久| 麻豆精品新av中文字幕| 国产福利视频一区二区三区| 91在线视频免费观看| 欧美日韩精品一区二区| 日韩欧美一区二区免费| 国产精品久久久久久久久免费丝袜 | www.成人在线| 91成人在线免费观看| 日韩美女视频一区二区在线观看| 欧美一区二区三区色| 国产欧美日韩不卡| 亚洲bt欧美bt精品| 国产风韵犹存在线视精品| 91福利视频网站| 精品欧美一区二区久久| 亚洲免费看黄网站| 国产一区二区免费在线| 在线观看欧美精品| 久久这里只有精品6| 一区二区免费视频| 韩国一区二区三区| 欧美色网一区二区| 国产亚洲婷婷免费| 亚洲国产一区在线观看| 国产99久久久国产精品免费看| 欧美优质美女网站| 国产性色一区二区| 视频一区二区三区中文字幕| 国产成人精品三级麻豆| 91精品国产乱| 亚洲最快最全在线视频| 国产aⅴ精品一区二区三区色成熟| 欧美性猛片aaaaaaa做受| 欧美国产在线观看| 蜜桃免费网站一区二区三区 | 欧美伊人精品成人久久综合97| 欧美mv和日韩mv的网站| 一区二区三区欧美在线观看| 国产精品一区一区| 日韩一区二区三区电影在线观看 | 亚洲福利视频三区| 92国产精品观看| 国产午夜精品久久久久久久| 蜜臀91精品一区二区三区 | 欧美性生活大片视频| 中文在线一区二区| 韩国视频一区二区| 欧美一区二区高清| 亚洲成av人在线观看| 色婷婷狠狠综合| 国产精品区一区二区三| 国产精一区二区三区| 欧美mv和日韩mv的网站| 久久国产人妖系列| 欧美一二三在线| 奇米四色…亚洲| 日韩一区二区免费高清| 日韩在线a电影| 欧美日韩一区二区三区不卡| 亚洲精品久久久久久国产精华液 | 欧美视频一区二区三区四区 | 欧美精品一区二区三区在线播放| 亚洲一级二级在线| 欧美四级电影网| 亚洲精品国产a| 欧美天堂一区二区三区| 亚洲综合久久av| 欧美日韩国产欧美日美国产精品| 一区二区三区四区在线播放| 日本电影亚洲天堂一区| 亚洲欧美色一区| 欧美日韩一区二区三区四区五区 | 国内精品久久久久影院色| 日韩视频免费观看高清在线视频| 美女一区二区在线观看| 精品久久久久一区二区国产| 国产一区二区女| 中文无字幕一区二区三区| 波多野结衣精品在线| 亚洲伦理在线免费看| 欧美视频完全免费看| 丝袜亚洲另类欧美综合| 欧美一级夜夜爽| 国产一区二区三区不卡在线观看 | 久久国产三级精品| 久久精品一二三| 波波电影院一区二区三区| 自拍偷拍亚洲激情| 欧美精品xxxxbbbb| 国产精品1区二区.| 自拍偷拍亚洲激情| 欧美福利视频导航| 国产精品一区二区视频| 亚洲日本青草视频在线怡红院| 欧美视频在线观看一区| 国产主播一区二区| 亚洲欧美国产77777| 制服.丝袜.亚洲.中文.综合| 国产一区二区在线电影| 亚洲色图一区二区| 欧美成人高清电影在线|