View | Details | Raw Unified | Return to bug 58868 | Differences between
and this patch

Collapse All | Expand All

(-)Eclipse SWT/win32/org/eclipse/swt/widgets/TabFolder.java 24 Mar 2004 16:14:06 -0000 1.44 (-2 / +6 lines)
Lines 31-42 Link Here
31
 * </p><p>
31
 * </p><p>
32
 * <dl>
32
 * <dl>
33
 * <dt><b>Styles:</b></dt>
33
 * <dt><b>Styles:</b></dt>
34
 * <dd>TOP, BOTTOM</dd>
34
 * <dd>TOP, BOTTOM, SINGLE, MULTI</dd>
35
 * <dt><b>Events:</b></dt>
35
 * <dt><b>Events:</b></dt>
36
 * <dd>Selection</dd>
36
 * <dd>Selection</dd>
37
 * </dl>
37
 * </dl>
38
 * <p>
38
 * <p>
39
 * Note: Only one of the styles TOP and BOTTOM may be specified.
39
 * Note: Only one of the styles TOP and BOTTOM may be specified.
40
 * Only one of the styles SINGLE and MULTI may be specified.
41
 * MULTI (multi-line tabs) is not supported on all platforms so it is just considered a hint.
40
 * </p><p>
42
 * </p><p>
41
 * IMPORTANT: This class is <em>not</em> intended to be subclassed.
43
 * IMPORTANT: This class is <em>not</em> intended to be subclassed.
42
 * </p>
44
 * </p>
Lines 160-165 Link Here
160
162
161
static int checkStyle (int style) {
163
static int checkStyle (int style) {
162
  style = checkBits (style, SWT.TOP, SWT.BOTTOM, 0, 0, 0, 0);
164
  style = checkBits (style, SWT.TOP, SWT.BOTTOM, 0, 0, 0, 0);
165
  style = checkBits (style, SWT.SINGLE, SWT.MULTI, 0, 0, 0, 0);
163
  /*
166
  /*
164
  * Even though it is legal to create this widget
167
  * Even though it is legal to create this widget
165
  * with scroll bars, they serve no useful purpose
168
  * with scroll bars, they serve no useful purpose
Lines 656-661 Link Here
656
  int bits = super.widgetStyle () | OS.WS_CLIPCHILDREN;
659
  int bits = super.widgetStyle () | OS.WS_CLIPCHILDREN;
657
  if ((style & SWT.NO_FOCUS) != 0) bits |= OS.TCS_FOCUSNEVER;
660
  if ((style & SWT.NO_FOCUS) != 0) bits |= OS.TCS_FOCUSNEVER;
658
  if ((style & SWT.BOTTOM) != 0) bits |= OS.TCS_BOTTOM;
661
  if ((style & SWT.BOTTOM) != 0) bits |= OS.TCS_BOTTOM;
662
  if ((style & SWT.MULTI) != 0) bits |= OS.TCS_MULTILINE;
659
  return bits | OS.TCS_TABS | OS.TCS_TOOLTIPS;
663
  return bits | OS.TCS_TABS | OS.TCS_TOOLTIPS;
660
}
664
}
661
665
Lines 782-788 Link Here
782
     return result;
786
     return result;
783
  }
787
  }
784
  int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);
788
  int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);
785
  if ((bits & OS.TCS_MULTILINE) != 0) {
789
  if ((bits & (OS.TCS_MULTILINE | OS.TCS_VERTICAL)) != 0) {
786
     OS.InvalidateRect (handle, null, true);
790
     OS.InvalidateRect (handle, null, true);
787
     return result;
791
     return result;
788
  }
792
  }
(-)Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OS.java 8 Apr 2004 21:14:48 -0000 1.141 (-3 / +18 lines)
Lines 1070-1080 Link Here
1070
  public static final int TCM_SETITEM = IsUnicode ? 0x133d : 0x1306;
1070
  public static final int TCM_SETITEM = IsUnicode ? 0x133d : 0x1306;
1071
  public static final int TCN_SELCHANGE = 0xfffffdd9;
1071
  public static final int TCN_SELCHANGE = 0xfffffdd9;
1072
  public static final int TCN_SELCHANGING = 0xfffffdd8;
1072
  public static final int TCN_SELCHANGING = 0xfffffdd8;
1073
  public static final int TCS_BOTTOM = 0x0002;
1073
  public static final int TCS_SCROLLOPPOSITE = 0x1; // assumes multiline tab
1074
  public static final int TCS_FOCUSNEVER = 0x8000;
1074
  public static final int TCS_BOTTOM = 0x2;
1075
  public static final int TCS_MULTILINE = 0x200;
1075
  public static final int TCS_RIGHT = 0x2;
1076
  public static final int TCS_MULTISELECT = 0x4; // allow multi-select in button mode
1077
  public static final int TCS_FLATBUTTONS = 0x8;
1078
  public static final int TCS_FORCEICONLEFT = 0x10;
1079
  public static final int TCS_FORCELABELLEFT = 0x20;
1080
  public static final int TCS_HOTTRACK = 0x40;
1081
  public static final int TCS_VERTICAL = 0x80;
1076
  public static final int TCS_TABS = 0x0;
1082
  public static final int TCS_TABS = 0x0;
1083
  public static final int TCS_BUTTONS = 0x100;
1084
  public static final int TCS_SINGLELINE = 0x0;
1085
  public static final int TCS_MULTILINE = 0x200;
1086
  public static final int TCS_RIGHTJUSTIFY = 0x0;
1087
  public static final int TCS_FIXEDWIDTH = 0x400;
1088
  public static final int TCS_RAGGEDRIGHT = 0x800;
1089
  public static final int TCS_FOCUSONBUTTONDOWN = 0x1000;
1090
  public static final int TCS_OWNERDRAWFIXED = 0x2000;
1077
  public static final int TCS_TOOLTIPS = 0x4000;
1091
  public static final int TCS_TOOLTIPS = 0x4000;
1092
  public static final int TCS_FOCUSNEVER = 0x8000;
1078
  public static final int TME_HOVER = 0x1;
1093
  public static final int TME_HOVER = 0x1;
1079
  public static final int TME_LEAVE = 0x2;
1094
  public static final int TME_LEAVE = 0x2;
1080
  public static final int TME_QUERY = 0x40000000;
1095
  public static final int TME_QUERY = 0x40000000;

Return to bug 58868