Mercurial > projects > dwt-linux
comparison dwt/custom/ScrolledComposite.d @ 259:c0d810de7093
Update SWT 3.4M7 to 3.4
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 29 Jun 2008 14:33:38 +0200 |
parents | ce446666f5a2 |
children |
comparison
equal
deleted
inserted
replaced
257:cc1d3de0e80b | 259:c0d810de7093 |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2006 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 * |
111 * </pre></code> | 111 * </pre></code> |
112 * | 112 * |
113 * <dl> | 113 * <dl> |
114 * <dt><b>Styles:</b><dd>H_SCROLL, V_SCROLL | 114 * <dt><b>Styles:</b><dd>H_SCROLL, V_SCROLL |
115 * </dl> | 115 * </dl> |
116 * | |
117 * @see <a href="http://www.eclipse.org/swt/snippets/#scrolledcomposite">ScrolledComposite snippets</a> | |
118 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | |
116 */ | 119 */ |
117 public class ScrolledComposite : Composite { | 120 public class ScrolledComposite : Composite { |
118 | 121 |
119 Control content; | 122 Control content; |
120 Listener contentListener; | 123 Listener contentListener; |
310 } | 313 } |
311 | 314 |
312 /** | 315 /** |
313 * Returns <code>true</code> if the receiver automatically scrolls to a focused child control | 316 * Returns <code>true</code> if the receiver automatically scrolls to a focused child control |
314 * to make it visible. Otherwise, returns <code>false</code>. | 317 * to make it visible. Otherwise, returns <code>false</code>. |
318 * | |
319 * @return a bool indicating whether focused child controls are automatically scrolled into the viewport | |
315 * | 320 * |
316 * @exception DWTException <ul> | 321 * @exception DWTException <ul> |
317 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> | 322 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
318 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> | 323 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> |
319 * </ul> | 324 * </ul> |
646 * @exception DWTException <ul> | 651 * @exception DWTException <ul> |
647 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> | 652 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> |
648 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> | 653 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> |
649 * </ul> | 654 * </ul> |
650 * | 655 * |
651 * @since 3.4 | 656 * @since 3.4 |
652 */ | 657 */ |
653 public void setShowFocusedControl(bool show) { | 658 public void setShowFocusedControl(bool show) { |
654 checkWidget(); | 659 checkWidget(); |
655 if (showFocusedControl is show) return; | 660 if (showFocusedControl is show) return; |
656 Display display = getDisplay(); | 661 Display display = getDisplay(); |