- Timestamp:
- Sep 14, 2009, 8:15:43 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Shell.java
r141 r187 1026 1026 // if (!OS.IsWinCE) OS.ShowOwnedPopups (handle, visible); 1027 1027 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 } 1038 1038 } 1039 1039 … … 1046 1046 1047 1047 void updateModal () { 1048 //@@TODO(dmik)1049 1048 if (!display.TrimEnabled) return; 1050 1049 setItemEnabled (OS.SC_CLOSE, isActive ());
Note:
See TracChangeset
for help on using the changeset viewer.