Changeset 213:36f5cb12e1a2 for dwt/custom/SashForm.d
- Timestamp:
- 05/17/08 11:34:28 (8 months ago)
- Files:
-
- dwt/custom/SashForm.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/custom/SashForm.d
r96 r213 112 112 //checkWidget(); 113 113 return (sashStyle & DWT.VERTICAL) !is 0 ? DWT.HORIZONTAL : DWT.VERTICAL; 114 } 115 /** 116 * Returns the width of the sashes when the controls in the SashForm are 117 * laid out. 118 * 119 * @return the width of the sashes 120 * 121 * @exception DWTException <ul> 122 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 123 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 124 * </ul> 125 * 126 * @since 3.4 127 */ 128 public int getSashWidth() { 129 checkWidget(); 130 return SASH_WIDTH; 114 131 } 115 132 public override int getStyle() { … … 362 379 363 380 /** 381 * Specify the width of the sashes when the controls in the SashForm are 382 * laid out. 383 * 384 * @param width the width of the sashes 385 * 386 * @exception DWTException <ul> 387 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 388 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 389 * </ul> 390 * 391 * @since 3.4 392 */ 393 public void setSashWidth(int width) { 394 checkWidget(); 395 if (SASH_WIDTH is width) return; 396 SASH_WIDTH = width; 397 layout(false); 398 } 399 /** 364 400 * Specify the relative weight of each child in the SashForm. This will determine 365 401 * what percent of the total width (if SashForm has Horizontal orientation) or
