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

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

?? scale.java

?? 源碼為Eclipse開源開發平臺桌面開發工具SWT的源代碼,
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/******************************************************************************* * Copyright (c) 2000, 2004 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Common Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/cpl-v10.html *  * Contributors: *     IBM Corporation - initial API and implementation *******************************************************************************/package org.eclipse.swt.widgets; import org.eclipse.swt.internal.win32.*;import org.eclipse.swt.*;import org.eclipse.swt.graphics.*;import org.eclipse.swt.events.*;/** * Instances of the receiver represent a selectable user * interface object that present a range of continuous * numeric values. * <dl> * <dt><b>Styles:</b></dt> * <dd>HORIZONTAL, VERTICAL</dd> * <dt><b>Events:</b></dt> * <dd>Selection</dd> * </dl> * <p> * Note: Only one of the styles HORIZONTAL and VERTICAL may be specified. * </p><p> * <p> * IMPORTANT: This class is intended to be subclassed <em>only</em> * within the SWT implementation. * </p> */public class Scale extends Control {	static final int TrackBarProc;	static final TCHAR TrackBarClass = new TCHAR (0, OS.TRACKBAR_CLASS, true);	static {		WNDCLASS lpWndClass = new WNDCLASS ();		OS.GetClassInfo (0, TrackBarClass, lpWndClass);		TrackBarProc = lpWndClass.lpfnWndProc;		/*		* Feature in Windows.  The track bar window class		* does not include CS_DBLCLKS.  This mean that these		* controls will not get double click messages such as		* WM_LBUTTONDBLCLK.  The fix is to register a new 		* window class with CS_DBLCLKS.		* 		* NOTE:  Screen readers look for the exact class name		* of the control in order to provide the correct kind		* of assistance.  Therefore, it is critical that the		* new window class have the same name.  It is possible		* to register a local window class with the same name		* as a global class.  Since bits that affect the class		* are being changed, it is possible that other native		* code, other than SWT, could create a control with		* this class name, and fail unexpectedly.		*/		int hInstance = OS.GetModuleHandle (null);		int hHeap = OS.GetProcessHeap ();		lpWndClass.hInstance = hInstance;		lpWndClass.style &= ~OS.CS_GLOBALCLASS;		lpWndClass.style |= OS.CS_DBLCLKS;		int byteCount = TrackBarClass.length () * TCHAR.sizeof;		int lpszClassName = OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount);		OS.MoveMemory (lpszClassName, TrackBarClass, byteCount);		lpWndClass.lpszClassName = lpszClassName;		OS.RegisterClass (lpWndClass);//		OS.HeapFree (hHeap, 0, lpszClassName);		}/** * Constructs a new instance of this class given its parent * and a style value describing its behavior and appearance. * <p> * The style value is either one of the style constants defined in * class <code>SWT</code> which is applicable to instances of this * class, or must be built by <em>bitwise OR</em>'ing together  * (that is, using the <code>int</code> "|" operator) two or more * of those <code>SWT</code> style constants. The class description * lists the style constants that are applicable to the class. * Style bits are also inherited from superclasses. * </p> * * @param parent a composite control which will be the parent of the new instance (cannot be null) * @param style the style of control to construct * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the parent is null</li> * </ul> * @exception SWTException <ul> *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li> *    <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li> * </ul> * * @see SWT#HORIZONTAL * @see SWT#VERTICAL * @see Widget#checkSubclass * @see Widget#getStyle */public Scale (Composite parent, int style) {	super (parent, checkStyle (style));}/** * Adds the listener to the collection of listeners who will * be notified when the receiver's value changes, by sending * it one of the messages defined in the <code>SelectionListener</code> * interface. * * @param listener the listener which should be notified * * @exception IllegalArgumentException <ul> *    <li>ERROR_NULL_ARGUMENT - if the listener is null</li> * </ul> * @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> * * @see SelectionListener * @see #removeSelectionListener */public void addSelectionListener(SelectionListener listener) {	checkWidget ();	if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);	TypedListener typedListener = new TypedListener (listener);	addListener (SWT.Selection,typedListener);	addListener (SWT.DefaultSelection,typedListener);}int callWindowProc (int msg, int wParam, int lParam) {	if (handle == 0) return 0;	return OS.CallWindowProc (TrackBarProc, handle, msg, wParam, lParam);}static int checkStyle (int style) {	return checkBits (style, SWT.HORIZONTAL, SWT.VERTICAL, 0, 0, 0, 0);}public Point computeSize (int wHint, int hHint, boolean changed) {	checkWidget ();	int border = getBorderWidth ();	int width = border * 2, height = border * 2;	RECT rect = new RECT ();	OS.SendMessage (handle, OS.TBM_GETTHUMBRECT, 0, rect);	if ((style & SWT.HORIZONTAL) != 0) {		width += OS.GetSystemMetrics (OS.SM_CXHSCROLL) * 10;		int scrollY = OS.GetSystemMetrics (OS.SM_CYHSCROLL);		height += (rect.top * 2) + scrollY + (scrollY / 3);	} else {		int scrollX = OS.GetSystemMetrics (OS.SM_CXVSCROLL);		width += (rect.left * 2) + scrollX + (scrollX / 3);		height += OS.GetSystemMetrics (OS.SM_CYVSCROLL) * 10;	}	if (wHint != SWT.DEFAULT) width = wHint + (border * 2);	if (hHint != SWT.DEFAULT) height = hHint + (border * 2);	return new Point (width, height);}void createHandle () {	super.createHandle ();	OS.SendMessage (handle, OS.TBM_SETRANGEMAX, 0, 100);	OS.SendMessage (handle, OS.TBM_SETPAGESIZE, 0, 10);	OS.SendMessage (handle, OS.TBM_SETTICFREQ, 10, 0);}int defaultForeground () {	return OS.GetSysColor (OS.COLOR_BTNFACE);}/** * Returns the amount that the receiver's value will be * modified by when the up/down (or right/left) arrows * are pressed. * * @return the increment * * @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 int getIncrement () {	checkWidget ();	return OS.SendMessage (handle, OS.TBM_GETLINESIZE, 0, 0);}/** * Returns the maximum value which the receiver will allow. * * @return the maximum * * @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 int getMaximum () {	checkWidget ();	return OS.SendMessage (handle, OS.TBM_GETRANGEMAX, 0, 0);}/** * Returns the minimum value which the receiver will allow. * * @return the 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 int getMinimum () {	checkWidget ();	return OS.SendMessage (handle, OS.TBM_GETRANGEMIN, 0, 0);}/** * Returns the amount that the receiver's value will be * modified by when the page increment/decrement areas * are selected. *

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产欧美日美国产精品| 91小视频在线免费看| 亚洲成人动漫精品| 依依成人综合视频| 一二三区精品视频| 午夜精品爽啪视频| 日韩专区在线视频| 美腿丝袜亚洲色图| 精品一区二区在线观看| 国内偷窥港台综合视频在线播放| 国模大尺度一区二区三区| 韩国av一区二区| 不卡av免费在线观看| 日本丶国产丶欧美色综合| 欧美亚洲图片小说| 日韩欧美精品在线| 国产精品麻豆欧美日韩ww| 伊人色综合久久天天| 日本成人超碰在线观看| 激情图片小说一区| 91麻豆123| 91精品国产综合久久久久| 精品国产乱码久久久久久图片| 国产欧美日韩卡一| 一区二区三区精密机械公司| 精品一区二区综合| 日本韩国精品一区二区在线观看| 欧美日韩不卡一区二区| 久久久精品免费观看| 亚洲天堂av一区| 麻豆国产精品一区二区三区 | 色av成人天堂桃色av| 91精品久久久久久久91蜜桃| 国产欧美日本一区二区三区| 亚洲综合一二三区| 成人一道本在线| 欧美一区二区在线免费观看| 国产精品久久久久久久岛一牛影视| 亚洲综合成人在线| 床上的激情91.| 欧美一级视频精品观看| 亚洲欧美一区二区三区孕妇| 精彩视频一区二区三区| 欧美午夜电影网| 亚洲欧美综合在线精品| 国产精品综合二区| 日韩午夜精品视频| 亚洲一区二区视频在线观看| 成人午夜视频在线观看| 亚洲精品一区二区三区四区高清| 亚洲一区二区三区视频在线 | 大白屁股一区二区视频| 91精品在线观看入口| 亚洲欧洲制服丝袜| 成人中文字幕合集| 久久综合久久综合亚洲| 三级欧美在线一区| 欧美日韩免费一区二区三区视频| 中文字幕中文字幕一区| 国产精品夜夜嗨| www日韩大片| 国产一区二区三区不卡在线观看| 欧美一级午夜免费电影| 三级亚洲高清视频| 在线不卡a资源高清| 亚洲成人tv网| 欧美狂野另类xxxxoooo| 性做久久久久久免费观看| 欧美性大战久久久| 亚洲综合偷拍欧美一区色| 日本精品视频一区二区| 亚洲午夜国产一区99re久久| 欧美在线观看你懂的| 一区二区三区不卡视频| 欧美色视频一区| 亚洲丰满少妇videoshd| 欧美日韩亚洲综合| 麻豆91在线看| 久久久久一区二区三区四区| 国产精品一区二区三区99| 国产精品色哟哟| 成人精品一区二区三区四区| 亚洲日本va在线观看| 欧美日韩免费视频| 日韩精品一级中文字幕精品视频免费观看 | 亚洲天堂精品在线观看| 日本二三区不卡| 日本va欧美va欧美va精品| 精品国产乱码久久久久久影片| 国产乱淫av一区二区三区| 亚洲国产高清在线| 色综合久久久久| 午夜精品免费在线观看| 精品国产伦一区二区三区观看方式 | 亚洲综合丝袜美腿| 91精品国产福利| 久99久精品视频免费观看| 久久精品人人做人人爽97| 97超碰欧美中文字幕| 亚洲www啪成人一区二区麻豆| 欧美一级精品在线| 成人av影视在线观看| 亚洲 欧美综合在线网络| 久久亚洲精品国产精品紫薇| 99精品视频一区| 日韩精彩视频在线观看| 欧美极品xxx| 欧美日韩精品欧美日韩精品一| 精品一区免费av| 一区二区三区在线免费观看| 日韩欧美自拍偷拍| 色综合视频在线观看| 蜜臀av性久久久久蜜臀aⅴ四虎| 久久久国产精品午夜一区ai换脸| 色婷婷久久久亚洲一区二区三区| 欧美aaaaaa午夜精品| 亚洲视频综合在线| 日韩你懂的在线播放| 色综合色狠狠综合色| 极品销魂美女一区二区三区| 亚洲免费三区一区二区| 精品成人一区二区| 精品污污网站免费看| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 日韩va欧美va亚洲va久久| 国产精品久久久久久久岛一牛影视 | 天天色综合天天| 国产精品久久久久久久裸模| 精品国产青草久久久久福利| 欧美日韩激情在线| 色成年激情久久综合| yourporn久久国产精品| 不卡的av中国片| 美国一区二区三区在线播放| 亚洲一区二区三区视频在线| 国产精品二区一区二区aⅴ污介绍| 日韩精品一区二区三区视频在线观看 | 精品亚洲成av人在线观看| 亚洲成人综合网站| 一区二区三区波多野结衣在线观看| 国产欧美一区二区精品秋霞影院| 777a∨成人精品桃花网| 在线观看亚洲a| 在线观看不卡一区| 欧美主播一区二区三区| 91国产丝袜在线播放| 色婷婷综合久久久中文一区二区| 成人免费va视频| av资源站一区| 91香蕉视频黄| 91美女在线观看| 色综合天天综合狠狠| 91福利在线看| 4438亚洲最大| 久久亚洲精华国产精华液 | 一区二区三区在线观看视频| 国产精品日产欧美久久久久| 国产情人综合久久777777| 中文字幕免费观看一区| 国产精品乱人伦中文| 亚洲免费三区一区二区| 亚洲国产综合色| 久久国产精品99久久久久久老狼| 老司机精品视频在线| 国产一区二区免费在线| 成人免费毛片嘿嘿连载视频| 91在线视频免费观看| 欧美三级一区二区| 日韩欧美一区二区三区在线| 国产欧美一区视频| 一区二区三区久久| 奇米777欧美一区二区| 国产成人免费9x9x人网站视频| 岛国精品在线观看| 精品视频1区2区| 久久久久久影视| 亚洲一区在线视频| 国内成人精品2018免费看| 91视视频在线观看入口直接观看www | 激情亚洲综合在线| 99在线热播精品免费| 欧美日韩视频在线第一区| 亚洲精品一线二线三线无人区| 国产精品女主播在线观看| 性欧美大战久久久久久久久| 国产一区欧美日韩| 欧美在线观看18| 久久久久国产精品麻豆| 亚洲一线二线三线视频| 国产精品白丝av| 欧美天堂一区二区三区| 久久精品欧美一区二区三区不卡| 一区二区三区在线不卡| 国产在线视频不卡二| 欧美日韩国产区一| 一色屋精品亚洲香蕉网站| 麻豆精品久久久| 欧美日韩高清一区二区| 亚洲视频一二区| 国产精品亚洲人在线观看|