comparison dwt/custom/ScrolledComposite.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 36f5cb12e1a2
children 349b8c12e243
comparison
equal deleted inserted replaced
245:d8c3d4a4f2b0 246:fd9c62a2998e
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 *
110 * </pre></code> 110 * </pre></code>
111 * 111 *
112 * <dl> 112 * <dl>
113 * <dt><b>Styles:</b><dd>H_SCROLL, V_SCROLL 113 * <dt><b>Styles:</b><dd>H_SCROLL, V_SCROLL
114 * </dl> 114 * </dl>
115 *
116 * @see <a href="http://www.eclipse.org/swt/snippets/#scrolledcomposite">ScrolledComposite snippets</a>
117 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
115 */ 118 */
116 public class ScrolledComposite : Composite { 119 public class ScrolledComposite : Composite {
117 120
118 Control content; 121 Control content;
119 Listener contentListener; 122 Listener contentListener;
309 } 312 }
310 313
311 /** 314 /**
312 * Returns <code>true</code> if the receiver automatically scrolls to a focused child control 315 * Returns <code>true</code> if the receiver automatically scrolls to a focused child control
313 * to make it visible. Otherwise, returns <code>false</code>. 316 * to make it visible. Otherwise, returns <code>false</code>.
317 *
318 * @return a bool indicating whether focused child controls are automatically scrolled into the viewport
314 * 319 *
315 * @exception DWTException <ul> 320 * @exception DWTException <ul>
316 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 321 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
317 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 322 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
318 * </ul> 323 * </ul>
645 * @exception DWTException <ul> 650 * @exception DWTException <ul>
646 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 651 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
647 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 652 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
648 * </ul> 653 * </ul>
649 * 654 *
650 * @since 3.4 655 * @since 3.4
651 */ 656 */
652 public void setShowFocusedControl(bool show) { 657 public void setShowFocusedControl(bool show) {
653 checkWidget(); 658 checkWidget();
654 if (showFocusedControl is show) return; 659 if (showFocusedControl is show) return;
655 Display display = getDisplay(); 660 Display display = getDisplay();