Changeset 77:205350493476
- Timestamp:
- 02/05/08 08:31:31 (1 year ago)
- Files:
-
- doc/Common.txt (modified) (1 diff)
- dwt/accessibility/Accessible.d (modified) (1 diff)
- dwt/internal/win32/OS.d (modified) (2 diffs)
- dwt/widgets/Control.d (modified) (3 diffs)
- dwt/widgets/Decorations.d (modified) (8 diffs)
- dwt/widgets/Menu.d (modified) (11 diffs)
- dwt/widgets/MenuItem.d (modified) (8 diffs)
- dwt/widgets/ProgressBar.d (modified) (1 diff)
- dwt/widgets/Sash.d (modified) (1 diff)
- dwt/widgets/Scale.d (modified) (1 diff)
- dwt/widgets/ScrollBar.d (modified) (1 diff)
- dwt/widgets/Scrollable.d (modified) (1 diff)
- dwt/widgets/Shell.d (modified) (8 diffs)
- dwt/widgets/Slider.d (modified) (1 diff)
- dwt/widgets/Spinner.d (modified) (1 diff)
- dwt/widgets/TabFolder.d (modified) (3 diffs)
- dwt/widgets/TabItem.d (modified) (1 diff)
- dwt/widgets/Table.d (modified) (2 diffs)
- dwt/widgets/Text.d (modified) (2 diffs)
- dwt/widgets/Tree.d (modified) (2 diffs)
- dwt/widgets/Widget.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doc/Common.txt
r76 r77 29 29 FileDialog 30 30 31 Accessible 32 33 dnd/* 34 custom/* 31 35 32 36 33 34 dwt/accessibility/Accessible.d
r52 r77 21 21 import dwt.widgets.Control; 22 22 class Accessible { 23 public static Accessible internal_new_Accessible(Control control) ; 24 int AddRef(); 25 int Release(); 26 int QueryInterface(int, int); 27 void checkWidget(); 28 void setFocus(int); 29 void internal_dispose_Accessible(); 30 int internal_WM_GETOBJECT(int, int); 31 bool isValidThread(); 32 int Next(int, int, int); 33 int Skip(int); 34 void addAccessibleListener(AccessibleListener); 35 void addAccessibleControlListener(AccessibleControlListener); 36 void addAccessibleTextListener(AccessibleTextListener); 37 void removeAccessibleListener(AccessibleListener); 38 void removeAccessibleControlListener(AccessibleControlListener); 39 void removeAccessibleTextListener(AccessibleTextListener); 40 int childIDToOs(int); 41 void textCaretMoved(int); 42 void textChanged(int, int, int); 43 void textSelectionChanged(); 44 int accDoDefaultAction(int); 45 int accHitTest(int, int, int); 46 int accLocation(int, int, int, int, int); 47 int osToChildID(int); 48 int accNavigate(int, int, int); 49 int accSelect(int, int); 50 int get_accChild(int, int); 51 int get_accChildCount(int); 52 int get_accDefaultAction(int, int); 53 int get_accDescription(int, int); 54 int get_accFocus(int); 55 int get_accHelp(int, int); 56 int get_accHelpTopic(int, int, int); 57 int get_accKeyboardShortcut(int, int); 58 int get_accName(int, int); 59 int get_accParent(int); 60 int get_accRole(int, int); 61 int osToRole(int); 62 int roleToOs(int); 63 int get_accSelection(int); 64 int get_accState(int, int); 65 int osToState(int); 66 int stateToOs(int); 67 int get_accValue(int, int); 68 int put_accName(int, int); 69 int put_accValue(int, int); 70 int Clone(int); 71 Control getControl(); 72 void selectionChanged(); 73 int Reset(); 23 public static Accessible internal_new_Accessible(Control control) { 24 return new Accessible; 25 } 26 // int AddRef(); 27 // int Release(); 28 // int QueryInterface(int, int); 29 // void checkWidget(); 30 // void setFocus(int); 31 void internal_dispose_Accessible(){ 32 } 33 int internal_WM_GETOBJECT(int, int){ 34 assert(false); 35 return 0; 36 } 37 // bool isValidThread(); 38 // int Next(int, int, int); 39 // int Skip(int); 40 void addAccessibleListener(AccessibleListener){ 41 } 42 void addAccessibleControlListener(AccessibleControlListener){ 43 } 44 // void addAccessibleTextListener(AccessibleTextListener); 45 // void removeAccessibleListener(AccessibleListener); 46 // void removeAccessibleControlListener(AccessibleControlListener); 47 // void removeAccessibleTextListener(AccessibleTextListener); 48 // int childIDToOs(int); 49 // void textCaretMoved(int); 50 // void textChanged(int, int, int); 51 // void textSelectionChanged(); 52 // int accDoDefaultAction(int); 53 // int accHitTest(int, int, int); 54 // int accLocation(int, int, int, int, int); 55 // int osToChildID(int); 56 // int accNavigate(int, int, int); 57 // int accSelect(int, int); 58 // int get_accChild(int, int); 59 // int get_accChildCount(int); 60 // int get_accDefaultAction(int, int); 61 // int get_accDescription(int, int); 62 // int get_accFocus(int); 63 // int get_accHelp(int, int); 64 // int get_accHelpTopic(int, int, int); 65 // int get_accKeyboardShortcut(int, int); 66 // int get_accName(int, int); 67 // int get_accParent(int); 68 // int get_accRole(int, int); 69 // int osToRole(int); 70 // int roleToOs(int); 71 // int get_accSelection(int); 72 // int get_accState(int, int); 73 // int osToState(int); 74 // int stateToOs(int); 75 // int get_accValue(int, int); 76 // int put_accName(int, int); 77 // int put_accValue(int, int); 78 // int Clone(int); 79 // Control getControl(); 80 // void selectionChanged(); 81 // int Reset(); 74 82 //int refCount; 75 83 //int enumIndex; dwt/internal/win32/OS.d
r75 r77 38 38 39 39 40 /* 41 Compile time versions 42 ANSI 43 WinCE 44 45 OS.IsUnicode 46 OS.IsWinCE 47 48 OS.IsHPC 49 50 OS.IsSP 51 OS.IsPPC 52 OS.IsWin95 53 OS.IsWinNT 54 55 */ 56 40 57 41 58 … … 66 83 public static BOOL IsWinNT; 67 84 68 version(WinCE) {85 version(WinCE) { 69 86 public const static BOOL IsWinCE = true; 70 public static const BOOL IsHPC = false; //todo 71 }else{ 87 public static const BOOL IsHPC = false; //todo 88 } 89 else { 72 90 public const static BOOL IsWinCE = false; 73 public static const BOOL IsHPC = false;74 } 75 76 public static const BOOL IsPPC _= false;91 public static const BOOL IsHPC = false; 92 } 93 94 public static const BOOL IsPPC = false; 77 95 78 96 // PORTING_FIXME, is it Windows WFSP? 79 public static const BOOL IsSP _= false;97 public static const BOOL IsSP = false; 80 98 81 99 public static const BOOL IsDBLocale; dwt/widgets/Control.d
r75 r77 3365 3365 * or VK_RIGHT. 3366 3366 */ 3367 if (OS.IsSP _) {3367 if (OS.IsSP) { 3368 3368 if (key is OS.VK_LEFT || key is OS.VK_RIGHT) return false; 3369 3369 } … … 3618 3618 int widgetExtStyle () { 3619 3619 int bits = 0; 3620 if (!OS.IsPPC _) {3620 if (!OS.IsPPC) { 3621 3621 if ((style & DWT.BORDER) !is 0) bits |= OS.WS_EX_CLIENTEDGE; 3622 3622 } … … 3647 3647 // if ((style & DWT.FLAT) !is 0) bits |= OS.WS_BORDER; 3648 3648 // } 3649 if (OS.IsPPC _) {3649 if (OS.IsPPC) { 3650 3650 if ((style & DWT.BORDER) !is 0) bits |= OS.WS_BORDER; 3651 3651 } dwt/widgets/Decorations.d
r54 r77 192 192 OS.SystemParametersInfo (OS.SPI_GETWORKAREA, 0, &rect, 0); 193 193 int width = rect.right - rect.left, height = rect.bottom - rect.top; 194 if (OS.IsPPC _) {194 if (OS.IsPPC) { 195 195 /* Leave space for the menu bar */ 196 196 if (menuBar !is null) { … … 396 396 MenuItem [] items = display.items; 397 397 if (menuBar is null || items is null) { 398 if (!OS.IsPPC _) return;398 if (!OS.IsPPC) return; 399 399 maxAccel = 1; 400 400 } else { 401 maxAccel = OS.IsPPC _? items.length + 1 : items.length;401 maxAccel = OS.IsPPC ? items.length + 1 : items.length; 402 402 } 403 403 ACCEL accel; … … 424 424 } 425 425 } 426 if (OS.IsPPC _) {426 if (OS.IsPPC) { 427 427 /* 428 428 * Note on WinCE PPC. Close the shell when user taps CTRL-Q. … … 1173 1173 } 1174 1174 } else { 1175 if (OS.IsPPC _) {1175 if (OS.IsPPC) { 1176 1176 /* 1177 1177 * Note in WinCE PPC. The menu bar is a separate popup window. … … 1555 1555 bits &= ~OS.WS_EX_CLIENTEDGE; 1556 1556 if ((style & DWT.NO_TRIM) !is 0) return bits; 1557 if (OS.IsPPC _) {1557 if (OS.IsPPC) { 1558 1558 if ((style & DWT.CLOSE) !is 0) bits |= OS.WS_EX_CAPTIONOKBTN; 1559 1559 } … … 1592 1592 * It does not set the WS_THICKFRAME style. 1593 1593 */ 1594 if (!OS.IsPPC _) bits |= OS.WS_THICKFRAME;1594 if (!OS.IsPPC) bits |= OS.WS_THICKFRAME; 1595 1595 } else { 1596 1596 if ((style & DWT.BORDER) is 0) bits |= OS.WS_BORDER; … … 1598 1598 1599 1599 /* Set the system menu and close box bits */ 1600 if (!OS.IsPPC _ && !OS.IsSP_) {1600 if (!OS.IsPPC && !OS.IsSP) { 1601 1601 if ((style & DWT.CLOSE) !is 0) bits |= OS.WS_SYSMENU; 1602 1602 } … … 1687 1687 if (result !is LRESULT.NULL) return result; 1688 1688 static if( OS.IsWinCE ){ 1689 if (OS.IsSP _) {1689 if (OS.IsSP) { 1690 1690 /* 1691 1691 * Feature on WinCE SP. The Back key is either used to close dwt/widgets/Menu.d
r56 r77 352 352 * 2 buttons 353 353 */ 354 static if (OS.IsSP _) {354 static if (OS.IsSP) { 355 355 /* Determine type of menubar */ 356 356 int nToolBarId; … … 446 446 display.addMenuItem (item); 447 447 bool success = false; 448 if ((OS.IsPPC _ || OS.IsSP_) && hwndCB !is null) {449 if (OS.IsSP _) return;448 if ((OS.IsPPC || OS.IsSP) && hwndCB !is null) { 449 if (OS.IsSP) return; 450 450 TBBUTTON lpButton; 451 451 lpButton.idCommand = item.id; … … 542 542 void destroyItem (MenuItem item) { 543 543 if (OS.IsWinCE) { 544 if ((OS.IsPPC _ || OS.IsSP_) && hwndCB !is null) {545 if (OS.IsSP _) {544 if ((OS.IsPPC || OS.IsSP) && hwndCB !is null) { 545 if (OS.IsSP) { 546 546 redraw(); 547 547 return; … … 772 772 checkWidget (); 773 773 int id = 0; 774 if ((OS.IsPPC _ || OS.IsSP_) && hwndCB !is null) {775 static if (OS.IsPPC _) {774 if ((OS.IsPPC || OS.IsSP) && hwndCB !is null) { 775 static if (OS.IsPPC) { 776 776 TBBUTTON lpButton; 777 777 int result = OS.SendMessage (hwndCB, OS.TB_GETBUTTON, index, &lpButton); … … 779 779 id = lpButton.idCommand; 780 780 } 781 if (OS.IsSP _) {781 if (OS.IsSP) { 782 782 if (!(0 <= index && index <= 1)) error (DWT.ERROR_CANNOT_GET_ITEM); 783 783 id = index is 0 ? id0 : id1; … … 828 828 public MenuItem [] getItems () { 829 829 checkWidget (); 830 if ((OS.IsPPC _ || OS.IsSP_) && hwndCB !is null) {831 if (OS.IsSP _) {830 if ((OS.IsPPC || OS.IsSP) && hwndCB !is null) { 831 if (OS.IsSP) { 832 832 MenuItem [] result = new MenuItem [2]; 833 833 result[0] = display.getMenuItem (id0); … … 868 868 int GetMenuItemCount (HANDLE handle) { 869 869 if (OS.IsWinCE) { 870 if ((OS.IsPPC _ || OS.IsSP_) && hwndCB !is null) {871 return OS.IsSP _? 2 : OS.SendMessage (hwndCB, OS.TB_BUTTONCOUNT, 0, 0);870 if ((OS.IsPPC || OS.IsSP) && hwndCB !is null) { 871 return OS.IsSP ? 2 : OS.SendMessage (hwndCB, OS.TB_BUTTONCOUNT, 0, 0); 872 872 } 873 873 int count = 0; … … 1041 1041 if (item.isDisposed()) error(DWT.ERROR_INVALID_ARGUMENT); 1042 1042 if (item.parent !is this) return -1; 1043 if ((OS.IsPPC _ || OS.IsSP_) && hwndCB !is null) {1044 if (OS.IsPPC _) {1043 if ((OS.IsPPC || OS.IsSP) && hwndCB !is null) { 1044 if (OS.IsPPC) { 1045 1045 return OS.SendMessage (hwndCB, OS.TB_COMMANDTOINDEX, item.id, 0); 1046 1046 } 1047 if (OS.IsSP _) {1047 if (OS.IsSP) { 1048 1048 if (item.id is id0) return 0; 1049 1049 if (item.id is id1) return 1; … … 1125 1125 MenuItem item = items [i]; 1126 1126 if (item !is null && !item.isDisposed ()) { 1127 if (OS.IsPPC _&& hwndCB !is null) {1127 if (OS.IsPPC && hwndCB !is null) { 1128 1128 item.dispose (); 1129 1129 } else { … … 1155 1155 if (hBrush is null) OS.DeleteObject (hBrush); 1156 1156 hBrush = null; 1157 if (OS.IsPPC _&& hwndCB !is null) {1157 if (OS.IsPPC && hwndCB !is null) { 1158 1158 if (imageList !is null) { 1159 1159 OS.SendMessage (hwndCB, OS.TB_SETIMAGELIST, 0, 0); … … 1438 1438 1439 1439 void update () { 1440 if (OS.IsPPC _ || OS.IsSP_) return;1440 if (OS.IsPPC || OS.IsSP) return; 1441 1441 static if (OS.IsHPC) { 1442 1442 /* dwt/widgets/MenuItem.d
r59 r77 399 399 public bool getEnabled () { 400 400 checkWidget (); 401 if ((OS.IsPPC _ || OS.IsSP_) && parent.hwndCB !is null) {401 if ((OS.IsPPC || OS.IsSP) && parent.hwndCB !is null) { 402 402 auto hwndCB = parent.hwndCB; 403 403 TBBUTTONINFO info; … … 479 479 checkWidget (); 480 480 if ((style & (DWT.CHECK | DWT.RADIO)) is 0) return false; 481 if ((OS.IsPPC _ || OS.IsSP_) && parent.hwndCB !is null) return false;481 if ((OS.IsPPC || OS.IsSP) && parent.hwndCB !is null) return false; 482 482 auto hMenu = parent.handle; 483 483 MENUITEMINFO info; … … 523 523 524 524 void releaseMenu () { 525 if (!OS.IsSP _) setMenu (null);525 if (!OS.IsSP) setMenu (null); 526 526 menu = null; 527 527 } … … 664 664 public void setEnabled (bool enabled) { 665 665 checkWidget (); 666 if ((OS.IsPPC _ || OS.IsSP_) && parent.hwndCB !is null) {666 if ((OS.IsPPC || OS.IsSP) && parent.hwndCB !is null) { 667 667 auto hwndCB = parent.hwndCB; 668 668 TBBUTTONINFO info; … … 734 734 super.setImage (image); 735 735 static if (OS.IsWinCE) { 736 if ((OS.IsPPC _ || OS.IsSP_) && parent.hwndCB !is null) {736 if ((OS.IsPPC || OS.IsSP) && parent.hwndCB !is null) { 737 737 int hwndCB = parent.hwndCB; 738 738 TBBUTTONINFO info; … … 812 812 813 813 /* Assign the new menu in the OS */ 814 if ((OS.IsPPC _ || OS.IsSP_) && parent.hwndCB !is null) {815 if (OS.IsPPC _) {814 if ((OS.IsPPC || OS.IsSP) && parent.hwndCB !is null) { 815 if (OS.IsPPC) { 816 816 HWND hwndCB = parent.hwndCB; 817 817 HMENU hMenu = menu is null ? null : menu.handle; 818 818 OS.SendMessage (hwndCB, OS.SHCMBM_SETSUBMENU, id, hMenu); 819 819 } 820 if (OS.IsSP _) error (DWT.ERROR_CANNOT_SET_MENU);820 if (OS.IsSP) error (DWT.ERROR_CANNOT_SET_MENU); 821 821 } else { 822 822 /* … … 952 952 checkWidget (); 953 953 if ((style & (DWT.CHECK | DWT.RADIO)) is 0) return; 954 if ((OS.IsPPC _ || OS.IsSP_) && parent.hwndCB !is null) return;954 if ((OS.IsPPC || OS.IsSP) && parent.hwndCB !is null) return; 955 955 auto hMenu = parent.handle; 956 956 if (OS.IsWinCE) { … … 1031 1031 TCHAR* pszText; 1032 1032 bool success = false; 1033 if ((OS.IsPPC _ || OS.IsSP_) && parent.hwndCB !is null) {1033 if ((OS.IsPPC || OS.IsSP) && parent.hwndCB !is null) { 1034 1034 /* 1035 1035 * Bug in WinCE PPC. Tool items on the menubar don't resize dwt/widgets/ProgressBar.d
r61 r77 8 8 * Contributors: 9 9 * IBM Corporation - initial API and implementation 10 * Port to the D programming language: 11 * Frank Benoit <benoit@tionex.de> 10 12 *******************************************************************************/ 11 13 module dwt.widgets.ProgressBar; dwt/widgets/Sash.d
r62 r77 8 8 * Contributors: 9 9 * IBM Corporation - initial API and implementation 10 * Port to the D programming language: 11 * Frank Benoit <benoit@tionex.de> 10 12 *******************************************************************************/ 11 13 module dwt.widgets.Sash; dwt/widgets/Scale.d
r63 r77 8 8 * Contributors: 9 9 * IBM Corporation - initial API and implementation 10 * Port to the D programming language: 11 * Frank Benoit <benoit@tionex.de> 10 12 *******************************************************************************/ 11 13 module dwt.widgets.Scale; dwt/widgets/ScrollBar.d
r63 r77 8 8 * Contributors: 9 9 * IBM Corporation - initial API and implementation 10 * Port to the D programming language: 11 * Frank Benoit <benoit@tionex.de> 10 12 *******************************************************************************/ 11 13 module dwt.widgets.ScrollBar; dwt/widgets/Scrollable.d
r54 r77 8 8 * Contributors: 9 9 * IBM Corporation - initial API and implementation 10 * Port to the D programming language: 11 * Frank Benoit <benoit@tionex.de> 10 12 *******************************************************************************/ 11 13 module dwt.widgets.Scrollable; dwt/widgets/Shell.d
r67 r77 8 8 * Contributors: 9 9 * IBM Corporation - initial API and implementation 10 * Port to the D programming language: 11 * Frank Benoit <benoit@tionex.de> 10 12 *******************************************************************************/ 11 13 module dwt.widgets.Shell; … … 584 586 SetWindowPos (handle, null, 0, 0, 0, 0, flags); 585 587 static if (OS.IsWinCE) _setMaximized (true); 586 static if (OS.IsPPC _) {588 static if (OS.IsPPC) { 587 589 psai = new SHACTIVATEINFO (); 588 590 psai.cbSize = SHACTIVATEINFO.sizeof; … … 1748 1750 1749 1751 override char[] windowClass () { 1750 static if (OS.IsSP _) return DialogClass;1752 static if (OS.IsSP) return DialogClass; 1751 1753 if ((style & DWT.TOOL) !is 0) { 1752 1754 int trim = DWT.TITLE | DWT.CLOSE | DWT.MIN | DWT.MAX | DWT.BORDER | DWT.RESIZE; … … 1758 1760 override int windowProc () { 1759 1761 if (windowProc_ !is null) return cast(int) windowProc_; 1760 static if (OS.IsSP _) return cast(int) DialogProc;1762 static if (OS.IsSP) return cast(int) DialogProc; 1761 1763 if ((style & DWT.TOOL) !is 0) { 1762 1764 int trim = DWT.TITLE | DWT.CLOSE | DWT.MIN | DWT.MAX | DWT.BORDER | DWT.RESIZE; … … 1832 1834 1833 1835 override LRESULT WM_ACTIVATE (int wParam, int lParam) { 1834 static if (OS.IsPPC _) {1836 static if (OS.IsPPC) { 1835 1837 /* 1836 1838 * Note: this does not work when we get WM_ACTIVATE prior … … 1880 1882 1881 1883 override LRESULT WM_COMMAND (int wParam, int lParam) { 1882 static if (OS.IsPPC _) {1884 static if (OS.IsPPC) { 1883 1885 /* 1884 1886 * Note in WinCE PPC: Close the Shell when the "Done Button" has … … 1902 1904 * came from a real Windows menu, not a tool bar. 1903 1905 */ 1904 static if (OS.IsPPC _ || OS.IsSP_) {1906 static if (OS.IsPPC || OS.IsSP) { 1905 1907 if (menuBar !is null) { 1906 1908 auto hwndCB = menuBar.hwndCB; … … 2213 2215 LRESULT result = super.WM_SETTINGCHANGE (wParam, lParam); 2214 2216 if (result !is LRESULT.NULL) return result; 2215 static if (OS.IsPPC _) {2217 static if (OS.IsPPC) { 2216 2218 if (wParam is OS.SPI_SETSIPINFO) { 2217 2219 /* dwt/widgets/Slider.d
r64 r77 8 8 * Contributors: 9 9 * IBM Corporation - initial API and implementation 10 * Port to the D programming language: 11 * Frank Benoit <benoit@tionex.de> 10 12 *******************************************************************************/ 11 13 module dwt.widgets.Slider; dwt/widgets/Spinner.d
r66 r77 8 8 * Contributors: 9 9 * IBM Corporation - initial API and implementation 10 * Port to the D programming language: 11 * Frank Benoit <benoit@tionex.de> 10 12 *******************************************************************************/ 11 13 module dwt.widgets.Spinner; dwt/widgets/TabFolder.d
r66 r77 8 8 * Contributors: 9 9 * IBM Corporation - initial API and implementation 10 * Port to the D programming language: 11 * Frank Benoit <benoit@tionex.de> 10 12 *******************************************************************************/ 11 13 module dwt.widgets.TabFolder; … … 182 184 * tabs to be on the bottom for tab folders on PPC. 183 185 */ 184 if (OS.IsPPC _) {186 if (OS.IsPPC) { 185 187 if ((style & DWT.TOP) is 0) style |= DWT.BOTTOM; 186 188 } … … 268 270 269 271 /* Enable the flat look for tab folders on PPC */ 270 if (OS.IsPPC _) {272 if (OS.IsPPC) { 271 273 OS.SendMessage (handle, OS.CCM_SETVERSION, 0x020c /*COMCTL32_VERSION*/, 0); 272 274 } dwt/widgets/TabItem.d
r66 r77 8 8 * Contributors: 9 9 * IBM Corporation - initial API and implementation 10 * Port to the D programming language: 11 * Frank Benoit <benoit@tionex.de> 10 12 *******************************************************************************/ 11 13 module dwt.widgets.TabItem; dwt/widgets/Table.d
r73 r77 6117 6117 * message. 6118 6118 */ 6119 if (OS.IsPPC _) {6119 if (OS.IsPPC) { 6120 6120 bool hasMenu = menu !is null && !menu.isDisposed (); 6121 6121 if (!hasMenu && !hooks (DWT.MenuDetect)) return LRESULT.ONE; … … 6123 6123 break; 6124 6124 case OS.GN_CONTEXTMENU: 6125 if (OS.IsPPC _) {6125 if (OS.IsPPC) { 6126 6126 bool hasMenu = menu !is null && !menu.isDisposed (); 6127 6127 if (hasMenu || hooks (DWT.MenuDetect)) { dwt/widgets/Text.d
r73 r77 2118 2118 * returned by the text window proc on other versions of Windows. 2119 2119 */ 2120 if (OS.IsPPC _) {2120 if (OS.IsPPC) { 2121 2121 if ((style & DWT.MULTI) !is 0 && (style & DWT.READ_ONLY) is 0 && lParam is 0) { 2122 2122 return cast(LRESULT) (OS.DLGC_HASSETSEL | OS.DLGC_WANTALLKEYS | OS.DLGC_WANTCHARS); … … 2215 2215 override LRESULT WM_LBUTTONDOWN (int wParam, int lParam) { 2216 2216 static if( OS.IsWinCE ) 2217 if (OS.IsPPC _) {2217 if (OS.IsPPC) { 2218 2218 LRESULT result = LRESULT.NULL; 2219 2219 Display display = this.display; dwt/widgets/Tree.d
r75 r77 7191 7191 * message. 7192 7192 */ 7193 if (OS.IsPPC _) {7193 if (OS.IsPPC) { 7194 7194 bool hasMenu = menu !is null && !menu.isDisposed (); 7195 7195 if (!hasMenu && !hooks (DWT.MenuDetect)) return LRESULT.ONE; … … 7198 7198 } 7199 7199 case OS.GN_CONTEXTMENU: { 7200 if (OS.IsPPC _) {7200 if (OS.IsPPC) { 7201 7201 bool hasMenu = menu !is null && !menu.isDisposed (); 7202 7202 if (hasMenu || hooks (DWT.MenuDetect)) { dwt/widgets/Widget.d
r73 r77 8 8 * Contributors: 9 9 * IBM Corporation - initial API and implementation 10 * Port to the D programming language: 11 * Frank Benoit <benoit@tionex.de> 10 12 *******************************************************************************/ 11 13 module dwt.widgets.Widget; … … 1781 1783 } 1782 1784 static if( OS.IsWinCE ){ 1783 if (OS.IsPPC _) {1785 if (OS.IsPPC) { 1784 1786 /* 1785 1787 * Note: On WinCE PPC, only attempt to recognize the gesture for
