comparison dwt/widgets/MessageBox.d @ 320:da968414c383

Merge changes SWT 3.4.1
author Frank Benoit <benoit@tionex.de>
date Mon, 03 Nov 2008 21:58:40 +0100
parents fd9c62a2998e
children
comparison
equal deleted inserted replaced
319:71b78d56f01f 320:da968414c383
174 if ((style & DWT.APPLICATION_MODAL) !is 0) modalBits = OS.MB_TASKMODAL; 174 if ((style & DWT.APPLICATION_MODAL) !is 0) modalBits = OS.MB_TASKMODAL;
175 if ((style & DWT.SYSTEM_MODAL) !is 0) modalBits = OS.MB_SYSTEMMODAL; 175 if ((style & DWT.SYSTEM_MODAL) !is 0) modalBits = OS.MB_SYSTEMMODAL;
176 } 176 }
177 177
178 int bits = buttonBits | iconBits | modalBits; 178 int bits = buttonBits | iconBits | modalBits;
179 if ((style & DWT.RIGHT_TO_LEFT) !is 0) bits |= OS.MB_RTLREADING; 179 if ((style & DWT.RIGHT_TO_LEFT) !is 0) bits |= OS.MB_RTLREADING | OS.MB_RIGHT;
180 if ((style & (DWT.LEFT_TO_RIGHT | DWT.RIGHT_TO_LEFT)) is 0) { 180 if ((style & (DWT.LEFT_TO_RIGHT | DWT.RIGHT_TO_LEFT)) is 0) {
181 if (parent !is null && (parent.style & DWT.MIRRORED) !is 0) { 181 if (parent !is null && (parent.style & DWT.MIRRORED) !is 0) {
182 bits |= OS.MB_RTLREADING; 182 bits |= OS.MB_RTLREADING | OS.MB_RIGHT;
183 } 183 }
184 } 184 }
185 185
186 /* 186 /*
187 * Feature in Windows. System modal is not supported 187 * Feature in Windows. System modal is not supported