Changeset 187 for trunk/src


Ignore:
Timestamp:
Sep 14, 2009, 8:15:43 PM (16 years ago)
Author:
lpino
Message:
  • Uncomment some code
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Shell.java

    r141 r187  
    10261026//    if (!OS.IsWinCE) OS.ShowOwnedPopups (handle, visible);
    10271027    int mask = SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL;
    1028 //    if ((style & mask) != 0) {
    1029 //        if (visible) {
    1030 //            display.setModal (this);
    1031 //            Control control = display.getFocusControl ();
    1032 //            if (control != null && !control.isActive ()) bringToTop ();
    1033 //            OS.WinSetCapture (OS.HWND_DESKTOP, OS.NULLHANDLE);
    1034 //        } else {
    1035 //            display.clearModal (this);
    1036 //        }
    1037 //    }
     1028    if ((style & mask) != 0) {
     1029        if (visible) {
     1030            display.setModal (this);
     1031            Control control = display.getFocusControl ();
     1032            if (control != null && !control.isActive ()) bringToTop ();
     1033            OS.WinSetCapture (OS.HWND_DESKTOP, OS.NULLHANDLE);
     1034        } else {
     1035            display.clearModal (this);
     1036        }
     1037    }
    10381038}
    10391039
     
    10461046
    10471047void updateModal () {
    1048 //@@TODO(dmik)
    10491048        if (!display.TrimEnabled) return;
    10501049        setItemEnabled (OS.SC_CLOSE, isActive ());
Note: See TracChangeset for help on using the changeset viewer.