Changeset 134
- Timestamp:
- May 13, 2009, 3:53:56 AM (16 years ago)
- Location:
- trunk/src/plugins/org.eclipse.swt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.eclipse.swt/Eclipse SWT PI/pm/org/eclipse/swt/internal/pm/OS.java
r122 r134 872 872 // public static final int SYSCLR_INACTIVETITLETEXTBGND = -31; 873 873 // public static final int SYSCLR_ACTIVETITLETEXTBGND = -30; 874 //public static final int SYSCLR_INACTIVETITLETEXT = -29;875 //public static final int SYSCLR_ACTIVETITLETEXT = -28;874 public static final int SYSCLR_INACTIVETITLETEXT = -29; 875 public static final int SYSCLR_ACTIVETITLETEXT = -28; 876 876 // public static final int SYSCLR_OUTPUTTEXT = -27; 877 877 // public static final int SYSCLR_WINDOWSTATICTEXT = -26; 878 878 public static final int SYSCLR_SCROLLBAR = -25; 879 879 // public static final int SYSCLR_BACKGROUND = -24; 880 //public static final int SYSCLR_ACTIVETITLE = -23;881 //public static final int SYSCLR_INACTIVETITLE = -22;880 public static final int SYSCLR_ACTIVETITLE = -23; 881 public static final int SYSCLR_INACTIVETITLE = -22; 882 882 public static final int SYSCLR_MENU = -21; 883 883 public static final int SYSCLR_WINDOW = -20; -
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Display.java
r132 r134 392 392 } 393 393 394 //@@TODO (dmik): later 395 //void clearModal (Shell shell) { 396 // if (ModalWidgets == null) return; 397 // int index = 0, length = ModalWidgets.length; 398 // while (index < length) { 399 // if (ModalWidgets [index] == shell) break; 400 // if (ModalWidgets [index] == null) return; 401 // index++; 402 // } 403 // if (index == length) return; 404 // System.arraycopy (ModalWidgets, index + 1, ModalWidgets, index, --length - index); 405 // ModalWidgets [length] = null; 406 // if (index == 0 && ModalWidgets [0] == null) ModalWidgets = null; 407 // if (!TrimEnabled) return; 408 // Shell [] shells = getShells (); 409 // for (int i=0; i<shells.length; i++) shells [i].updateModal (); 410 //} 394 void clearModal (Shell shell) { 395 if (ModalWidgets == null) return; 396 int index = 0, length = ModalWidgets.length; 397 while (index < length) { 398 if (ModalWidgets [index] == shell) break; 399 if (ModalWidgets [index] == null) return; 400 index++; 401 } 402 if (index == length) return; 403 System.arraycopy (ModalWidgets, index + 1, ModalWidgets, index, --length - index); 404 ModalWidgets [length] = null; 405 if (index == 0 && ModalWidgets [0] == null) ModalWidgets = null; 406 if (!TrimEnabled) return; 407 Shell [] shells = getShells (); 408 for (int i=0; i<shells.length; i++) shells [i].updateModal (); 409 } 411 410 412 411 //@@TODO (dmik): later (lpino) using WinUpperChar … … 1055 1054 int pixel = 0x02000000; 1056 1055 switch (id) { 1057 //case SWT.COLOR_WIDGET_DARK_SHADOW: pixel = OS.WinQuerySysColor (OS.HWND_DESKTOP, OS.SYSCLR_SHADOW,0); break;1058 // case SWT.COLOR_WIDGET_NORMAL_SHADOW: pixel = OS.GetSysColor (OS.COLOR_3DSHADOW);break;1056 case SWT.COLOR_WIDGET_DARK_SHADOW: pixel = OS.WinQuerySysColor (OS.HWND_DESKTOP, OS.SYSCLR_SHADOW,0); break; 1057 case SWT.COLOR_WIDGET_NORMAL_SHADOW: pixel = OS.WinQuerySysColor (OS.HWND_DESKTOP, OS.SYSCLR_SHADOW,0); break; 1059 1058 // case SWT.COLOR_WIDGET_LIGHT_SHADOW: pixel = OS.GetSysColor (OS.COLOR_3DLIGHT); break; 1060 1059 // case SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW: pixel = OS.GetSysColor (OS.COLOR_3DHIGHLIGHT); break; … … 1068 1067 // case SWT.COLOR_INFO_FOREGROUND: pixel = OS.GetSysColor (OS.COLOR_INFOTEXT); break; 1069 1068 // case SWT.COLOR_INFO_BACKGROUND: pixel = OS.GetSysColor (OS.COLOR_INFOBK); break; 1070 // case SWT.COLOR_TITLE_FOREGROUND: pixel = OS.GetSysColor (OS.COLOR_CAPTIONTEXT);break;1071 // case SWT.COLOR_TITLE_BACKGROUND: pixel = OS.GetSysColor (OS.COLOR_ACTIVECAPTION);break;1069 case SWT.COLOR_TITLE_FOREGROUND: pixel =OS.WinQuerySysColor (OS.HWND_DESKTOP, OS.SYSCLR_ACTIVETITLETEXT,0); break; 1070 case SWT.COLOR_TITLE_BACKGROUND: pixel = OS.WinQuerySysColor (OS.HWND_DESKTOP, OS.SYSCLR_ACTIVETITLE,0); break; 1072 1071 // case SWT.COLOR_TITLE_BACKGROUND_GRADIENT: 1073 1072 // pixel = OS.GetSysColor (OS.COLOR_GRADIENTACTIVECAPTION); 1074 1073 // if (pixel == 0) pixel = OS.GetSysColor (OS.COLOR_ACTIVECAPTION); 1075 1074 // break; 1076 // case SWT.COLOR_TITLE_INACTIVE_FOREGROUND: pixel = OS.GetSysColor (OS.COLOR_INACTIVECAPTIONTEXT);break;1077 // case SWT.COLOR_TITLE_INACTIVE_BACKGROUND: pixel = OS.GetSysColor (OS.COLOR_INACTIVECAPTION);break;1075 case SWT.COLOR_TITLE_INACTIVE_FOREGROUND: pixel = OS.WinQuerySysColor (OS.HWND_DESKTOP, OS.SYSCLR_INACTIVETITLETEXT,0); break; 1076 case SWT.COLOR_TITLE_INACTIVE_BACKGROUND: pixel = OS.WinQuerySysColor (OS.HWND_DESKTOP, OS.SYSCLR_INACTIVETITLE,0); break; 1078 1077 // case SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT: 1079 1078 // pixel = OS.GetSysColor (OS.COLOR_GRADIENTINACTIVECAPTION);
Note:
See TracChangeset
for help on using the changeset viewer.