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

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

?? scrollbar.java

?? 源碼為Eclipse開源開發(fā)平臺桌面開發(fā)工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
	* 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) {		/*		* This line is intentionally commented.  Currently		* always show scrollbar as being enabled and visible.		*///		if (OS.IsWinCE) error (SWT.ERROR_NOT_IMPLEMENTED);		if (!OS.IsWinCE) {			OS.EnableScrollBar (hwnd, type, OS.ESB_DISABLE_BOTH);		}	}}/** * 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 selection 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 selection) {	checkWidget();	SCROLLINFO info = new SCROLLINFO ();	info.cbSize = SCROLLINFO.sizeof;	int hwnd = hwndScrollBar (), type = scrollBarType ();	info.fMask = OS.SIF_POS;	info.nPos = selection;	OS.SetScrollInfo (hwnd, type, 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;	int hwnd = hwndScrollBar (), type = scrollBarType ();	info.fMask = OS.SIF_PAGE | OS.SIF_RANGE | OS.SIF_DISABLENOSCROLL;	OS.GetScrollInfo (hwnd, type, info);	info.nPage = value;	if (info.nPage != 0) info.nPage++;	OS.SetScrollInfo (hwnd, type, info, true);		/*	* Bug in Windows.  For some reason, when the widget	* is a standard scroll bar, and SetScrollInfo () is	* called with SIF_RANGE or SIF_PAGE, the widget is	* incorrectly made visible so that the next time the	* widget is resized (or another scroll bar operation	* is performed), the scroll bar draws.  The fix is	* to hide the scroll bar (again) when already hidden.	*/	if ((state & HIDDEN) != 0) {		/*		* This line is intentionally commented.  Currently		* always show scrollbar as being enabled and visible.		*///		if (OS.IsWinCE) error (SWT.ERROR_NOT_IMPLEMENTED);		if (!OS.IsWinCE) {			OS.ShowScrollBar (hwnd, type, false);		}	}			/*	* 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) {		/*		* This line is intentionally commented.  Currently		* always show scrollbar as being enabled and visible.		*///		if (OS.IsWinCE) error (SWT.ERROR_NOT_IMPLEMENTED);		if (!OS.IsWinCE) {			OS.EnableScrollBar (hwnd, type, OS.ESB_DISABLE_BOTH);		}	}}/** * 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++;	int hwnd = hwndScrollBar (), type = scrollBarType ();	OS.SetScrollInfo (hwnd, type, info, true);			/*	* Bug in Windows.  For some reason, when the widget	* is a standard scroll bar, and SetScrollInfo () is	* called with SIF_RANGE or SIF_PAGE, the widget is	* incorrectly made visible so that the next time the	* widget is resized (or another scroll bar operation	* is performed), the scroll bar draws.  The fix is	* to hide the scroll bar (again) when already hidden.	*/	if ((state & HIDDEN) != 0) {		/*		* This line is intentionally commented.  Currently		* always show scrollbar as being enabled and visible.		*///		if (OS.IsWinCE) error (SWT.ERROR_NOT_IMPLEMENTED);		if (!OS.IsWinCE) {			OS.ShowScrollBar (hwnd, type, false);		}	}			/*	* 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) {		/*		* This line is intentionally commented.  Currently		* always show scrollbar as being enabled and visible.		*///		if (OS.IsWinCE) error (SWT.ERROR_NOT_IMPLEMENTED);		if (!OS.IsWinCE) {			OS.EnableScrollBar (hwnd, type, OS.ESB_DISABLE_BOTH);		}	}}/** * Marks the receiver as visible if the argument is <code>true</code>, * and marks it invisible otherwise.  * <p> * If one of the receiver's ancestors is not visible or some * other condition makes the receiver not visible, marking * it visible may not actually cause it to be displayed. * </p> * * @param visible the new visibility state * * @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 setVisible (boolean visible) {	checkWidget();	boolean isVisible = (state & HIDDEN) == 0;	if (isVisible == visible) return;		/*	* On Windows CE, use SIF_DISABLENOSCROLL to show and	* hide the scroll bar when the page size is equal to	* the range.	*/	if (OS.IsWinCE) {		SCROLLINFO info = new SCROLLINFO ();		info.cbSize = SCROLLINFO.sizeof;		int hwnd = hwndScrollBar (), type = scrollBarType ();		info.fMask = OS.SIF_RANGE | OS.SIF_PAGE;		if (visible) info.fMask |= OS.SIF_DISABLENOSCROLL;		OS.GetScrollInfo (hwnd, type, info);		if (info.nPage == info.nMax - info.nMin + 1) {			/*			* Bug in Windows.  When the only changed flag to			* SetScrollInfo () is OS.SIF_DISABLENOSCROLL, 			* Windows does not update the scroll bar state.			* The fix is to increase and then decrease the			* maximum, causing Windows to honour the flag.			*/  			int max = info.nMax;			info.nMax++;			OS.SetScrollInfo (hwnd, type, info, false);			info.nMax = max;			OS.SetScrollInfo (hwnd, type, info, true);		} else {        	/*        	* This line is intentionally commented.  Currently        	* always show scrollbar as being enabled and visible.        	*///			if (OS.IsWinCE) error (SWT.ERROR_NOT_IMPLEMENTED);		}		return;	}		/*	* Set the state bits before calling ShowScrollBar ()	* because hiding and showing the scroll bar can cause	* WM_SIZE messages when the client area is resized.	* Setting the state before the call means that code	* that runs during WM_SIZE that queries the visibility	* of the scroll bar will get the correct value.	*/	state = visible ? state & ~HIDDEN : state | HIDDEN;	int hwnd = hwndScrollBar (), type = scrollBarType ();	if (OS.ShowScrollBar (hwnd, type, visible)) {		/*		* Bug in Windows.  For some reason, when the widget		* is a standard scroll bar, and SetScrollInfo () is		* called with SIF_RANGE or SIF_PAGE while the widget		* is not visible, the widget is incorrectly disabled		* even though the values for SIF_RANGE and SIF_PAGE,		* when set for a visible scroll bar would not disable		* the scroll bar.  The fix is to enable the scroll bar		* when not disabled by the application and the current		* scroll bar ranges would cause the scroll bar to be		* enabled had they been set when the scroll bar was		* visible.		*/		if ((state & DISABLED) == 0) {			SCROLLINFO info = new SCROLLINFO ();			info.cbSize = SCROLLINFO.sizeof;			info.fMask = OS.SIF_RANGE | OS.SIF_PAGE;			OS.GetScrollInfo (hwnd, type, info);			if (info.nMax - info.nMin - info.nPage >= 0) {				OS.EnableScrollBar (hwnd, type, OS.ESB_ENABLE_BOTH);			}		}		sendEvent (visible ? SWT.Show : SWT.Hide);		// widget could be disposed at this point	}}LRESULT wmScrollChild (int wParam, int lParam) {	/* Do nothing when scrolling is ending */	int code = wParam & 0xFFFF;	if (code == OS.SB_ENDSCROLL) return null;	/*	* Send the event because WM_HSCROLL and	* WM_VSCROLL are sent from a modal message	* loop in Windows that is active when the	* user is scrolling.	*/	Event event = new Event ();	switch (code) {		/*		* This line is intentionally commented.  Do not set the detail		* field to DRAG to indicate that the dragging has ended when the		* scroll bar is finally positioned in SB_THUMBPOSITION.		*///		case OS.SB_THUMBPOSITION:	break;		case OS.SB_THUMBTRACK:		event.detail = SWT.DRAG;  break;		case OS.SB_TOP: 			event.detail = SWT.HOME;  break;		case OS.SB_BOTTOM:			event.detail = SWT.END;  break;		case OS.SB_LINEDOWN:		event.detail = SWT.ARROW_DOWN;  break;		case OS.SB_LINEUP: 		event.detail = SWT.ARROW_UP;  break;		case OS.SB_PAGEDOWN:		event.detail = SWT.PAGE_DOWN;  break;		case OS.SB_PAGEUP:			event.detail = SWT.PAGE_UP;  break;	}	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一区二区三区免费野_久草精品视频
精品国产三级a在线观看| 欧美性感一区二区三区| 亚洲视频免费观看| 91精选在线观看| 夫妻av一区二区| 亚洲欧美日韩国产手机在线| 欧美本精品男人aⅴ天堂| 国产不卡在线一区| 蜜臀av亚洲一区中文字幕| 亚洲乱码一区二区三区在线观看| 欧美一级在线视频| 在线观看91精品国产入口| 国产成人精品三级| 六月丁香综合在线视频| 亚洲一区中文日韩| 成人免费小视频| 久久精品视频在线看| 91精品欧美综合在线观看最新| 99久久综合国产精品| 国产在线国偷精品产拍免费yy| 秋霞av亚洲一区二区三| 亚洲精品午夜久久久| 国产精品久久三| 精品久久一区二区| 欧美一级日韩免费不卡| 欧美综合亚洲图片综合区| 91亚洲精品乱码久久久久久蜜桃 | 欧美日韩中字一区| 不卡的av中国片| 国产精品18久久久久久久久| 日本成人在线网站| 婷婷国产v国产偷v亚洲高清| 亚洲人成7777| 国产精品的网站| 中文字幕高清不卡| 国产清纯美女被跳蛋高潮一区二区久久w | 欧美丰满一区二区免费视频| 在线观看一区二区精品视频| 91免费国产在线| 99re成人在线| 91麻豆精品视频| 色又黄又爽网站www久久| 97国产一区二区| 91污片在线观看| www.欧美色图| 91一区二区三区在线播放| av在线综合网| 91女神在线视频| 色呦呦日韩精品| 欧美图片一区二区三区| 欧美又粗又大又爽| 欧美视频精品在线观看| 欧美在线观看一二区| 欧美在线free| 日韩一区二区三区视频在线| 欧美一区二区美女| 久久日韩精品一区二区五区| 国产亚洲女人久久久久毛片| 日本一区免费视频| 日韩毛片视频在线看| 一区二区三区精品久久久| 亚洲一区二区三区精品在线| 日韩vs国产vs欧美| 蜜桃一区二区三区在线观看| 国产一区二区不卡| 成人av网站免费观看| 欧美影院一区二区| 欧美一区二区三区在线电影| 久久综合九色综合欧美亚洲| 国产精品素人一区二区| 亚洲精品中文在线| 日本女人一区二区三区| 国产精一区二区三区| 99视频一区二区| 4438x亚洲最大成人网| 久久久影视传媒| 综合在线观看色| 天天影视色香欲综合网老头| 国产在线麻豆精品观看| 91在线播放网址| 91精品国产一区二区| 久久精品夜夜夜夜久久| 中文字幕欧美一区| 日韩福利视频导航| av在线播放一区二区三区| 欧美久久一区二区| 久久精品人人做人人爽人人| 亚洲黄色录像片| 韩国理伦片一区二区三区在线播放| 成人avav在线| 欧美一区二区三区日韩视频| 国产精品看片你懂得| 日韩电影在线观看网站| 成人免费的视频| 91精品久久久久久久91蜜桃| 中文字幕在线观看一区二区| 蜜臀av一级做a爰片久久| 91毛片在线观看| 精品嫩草影院久久| 亚洲综合丁香婷婷六月香| 国产激情一区二区三区| 欧美男生操女生| 国产精品美女视频| 久久国产福利国产秒拍| 欧美亚洲尤物久久| 国产精品区一区二区三| 久久疯狂做爰流白浆xx| 欧美亚洲自拍偷拍| 亚洲人被黑人高潮完整版| 激情综合网av| 6080国产精品一区二区| 亚洲欧美视频一区| 国产91丝袜在线播放| 欧美一区二区三区不卡| 亚洲国产精品久久一线不卡| 成人激情电影免费在线观看| 精品久久久久久久久久久久久久久 | 亚洲卡通动漫在线| 国产69精品久久久久毛片 | 国产精品色婷婷| 九九九精品视频| 欧美精品一二三| 亚洲一区二区三区三| 一本一本大道香蕉久在线精品| 中文字幕av在线一区二区三区| 久久se精品一区二区| 欧美一区二区私人影院日本| 天天综合色天天综合色h| 91官网在线免费观看| 亚洲少妇30p| 成人a免费在线看| 久久精品欧美日韩精品 | 美女尤物国产一区| 欧美日韩精品免费观看视频| 亚洲尤物在线视频观看| 欧美在线不卡视频| 亚洲午夜在线视频| 在线免费观看日本一区| 亚洲精品五月天| 欧美最猛性xxxxx直播| 一个色在线综合| 91黄色激情网站| 亚洲综合一二三区| 欧美日韩精品福利| 日本一区中文字幕| 91精品国产高清一区二区三区| 天天免费综合色| 欧美一级一区二区| 精品一区二区三区在线观看 | 99精品欧美一区二区三区综合在线| 国产精品女人毛片| a美女胸又www黄视频久久| 中文字幕一区二区三区色视频 | 国产不卡免费视频| 国产精品久久久久久一区二区三区| 99久久久无码国产精品| 亚洲一区二区在线免费观看视频| 欧美三级日韩三级国产三级| 日本va欧美va瓶| 日韩精品一区二区三区老鸭窝| 国产在线播放一区三区四| 久久久久久日产精品| 成人蜜臀av电影| 一区二区三区视频在线看| 欧美日韩视频在线第一区| 乱一区二区av| 国产精品沙发午睡系列990531| 99精品视频一区二区三区| 亚洲一区二区影院| 欧美精品一区二区三区高清aⅴ | 艳妇臀荡乳欲伦亚洲一区| 欧美肥妇bbw| 国产福利91精品| 亚洲激情中文1区| 精品国产三级电影在线观看| 97精品久久久久中文字幕| 天堂一区二区在线| 国产视频不卡一区| 欧美中文字幕一区| 国产一区二区三区免费播放| 自拍视频在线观看一区二区| 欧美人成免费网站| 国产成人精品一区二区三区四区| 一区二区日韩av| 91精品国产综合久久福利| 国产成人免费在线| 亚洲成人av一区二区三区| 久久久精品免费网站| 在线亚洲+欧美+日本专区| 精品一区免费av| 亚洲一区二区三区中文字幕 | 国产宾馆实践打屁股91| 午夜一区二区三区视频| 久久久久久久久久久久久女国产乱| 91国模大尺度私拍在线视频| 国产在线视视频有精品| 亚洲va欧美va人人爽午夜| 国产精品天美传媒| 欧美不卡视频一区| 欧美午夜电影一区|