Mercurial > projects > dwt-win
comparison dwt/widgets/ProgressBar.d @ 246:fd9c62a2998e
Updater SWT 3.4M7 to 3.4
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 01 Jul 2008 10:15:59 +0200 |
parents | a8fed3e56433 |
children | da968414c383 |
comparison
equal
deleted
inserted
replaced
245:d8c3d4a4f2b0 | 246:fd9c62a2998e |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2007 IBM Corporation and others. | 2 * Copyright (c) 2000, 2008 IBM Corporation and others. |
3 * All rights reserved. This program and the accompanying materials | 3 * All rights reserved. This program and the accompanying materials |
4 * are made available under the terms of the Eclipse Public License v1.0 | 4 * are made available under the terms of the Eclipse Public License v1.0 |
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
7 * | 7 * |
37 * Note: Only one of the styles HORIZONTAL and VERTICAL may be specified. | 37 * Note: Only one of the styles HORIZONTAL and VERTICAL may be specified. |
38 * </p><p> | 38 * </p><p> |
39 * IMPORTANT: This class is intended to be subclassed <em>only</em> | 39 * IMPORTANT: This class is intended to be subclassed <em>only</em> |
40 * within the DWT implementation. | 40 * within the DWT implementation. |
41 * </p> | 41 * </p> |
42 * | |
43 * @see <a href="http://www.eclipse.org/swt/snippets/#progressbar">ProgressBar snippets</a> | |
44 * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample</a> | |
45 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | |
42 */ | 46 */ |
43 public class ProgressBar : Control { | 47 public class ProgressBar : Control { |
44 | 48 |
45 alias Control.computeSize computeSize; | 49 alias Control.computeSize computeSize; |
46 alias Control.windowProc windowProc; | 50 alias Control.windowProc windowProc; |
209 checkWidget (); | 213 checkWidget (); |
210 return OS.SendMessage (handle, OS.PBM_GETPOS, 0, 0); | 214 return OS.SendMessage (handle, OS.PBM_GETPOS, 0, 0); |
211 } | 215 } |
212 | 216 |
213 /** | 217 /** |
214 * Returns the state of the receiver. The value will be one of | 218 * Returns the state of the receiver. The value will be one of: |
215 * <code>NORMAL</code>, <code>ERROR</code> or <code>PAUSED</code>. | 219 * <ul> |
220 * <li>{@link DWT#NORMAL}</li> | |
221 * <li>{@link DWT#ERROR}</li> | |
222 * <li>{@link DWT#PAUSED}</li> | |
223 * </ul> | |
216 * | 224 * |
217 * @return the state | 225 * @return the state |
218 * | 226 * |
219 * @exception DWTException <ul> | 227 * @exception DWTException <ul> |
220 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> | 228 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
347 OS.SendMessage (handle, OS.PBM_SETSTATE, state, 0); | 355 OS.SendMessage (handle, OS.PBM_SETSTATE, state, 0); |
348 } | 356 } |
349 } | 357 } |
350 | 358 |
351 /** | 359 /** |
352 * Sets the state of the receiver. The state is be one of | 360 * Sets the state of the receiver. The state must be one of these values: |
353 * <code>NORMAL</code>, <code>ERROR</code> or <code>PAUSED</code>. | 361 * <ul> |
362 * <li>{@link DWT#NORMAL}</li> | |
363 * <li>{@link DWT#ERROR}</li> | |
364 * <li>{@link DWT#PAUSED}</li> | |
365 * </ul> | |
354 * | 366 * |
355 * @param state the new state | 367 * @param state the new state |
356 * | 368 * |
357 * @exception DWTException <ul> | 369 * @exception DWTException <ul> |
358 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> | 370 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |