Mercurial > projects > dwt-win
comparison dwt/widgets/Composite.d @ 212:ab60f3309436
reverted the char[] to String and use the an alias.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:12:38 +0200 |
parents | 07ed83d51a19 |
children | 36f5cb12e1a2 |
comparison
equal
deleted
inserted
replaced
211:ff59aeb96cac | 212:ab60f3309436 |
---|---|
948 if (child.isTabItem () && child.setTabItemFocus ()) return true; | 948 if (child.isTabItem () && child.setTabItemFocus ()) return true; |
949 } | 949 } |
950 return false; | 950 return false; |
951 } | 951 } |
952 | 952 |
953 char[] toolTipText (NMTTDISPINFO* hdr) { | 953 String toolTipText (NMTTDISPINFO* hdr) { |
954 Shell shell = getShell (); | 954 Shell shell = getShell (); |
955 if ((hdr.uFlags & OS.TTF_IDISHWND) is 0) { | 955 if ((hdr.uFlags & OS.TTF_IDISHWND) is 0) { |
956 char[] string = null; | 956 String string = null; |
957 ToolTip toolTip = shell.findToolTip (hdr.hdr.idFrom); | 957 ToolTip toolTip = shell.findToolTip (hdr.hdr.idFrom); |
958 if (toolTip !is null) { | 958 if (toolTip !is null) { |
959 string = toolTip.message; | 959 string = toolTip.message; |
960 if (string is null || string.length is 0) string = " "; | 960 if (string is null || string.length is 0) string = " "; |
961 } | 961 } |
1562 // OS.MoveMemory (cast(NMTTDISPINFOA)lpnmtdi, lParam, NMTTDISPINFOA.sizeof); | 1562 // OS.MoveMemory (cast(NMTTDISPINFOA)lpnmtdi, lParam, NMTTDISPINFOA.sizeof); |
1563 // } else { | 1563 // } else { |
1564 // lpnmtdi = new NMTTDISPINFOW (); | 1564 // lpnmtdi = new NMTTDISPINFOW (); |
1565 // OS.MoveMemory (cast(NMTTDISPINFOW)lpnmtdi, lParam, NMTTDISPINFOW.sizeof); | 1565 // OS.MoveMemory (cast(NMTTDISPINFOW)lpnmtdi, lParam, NMTTDISPINFOW.sizeof); |
1566 // } | 1566 // } |
1567 char[] string = toolTipText (lpnmtdi); | 1567 String string = toolTipText (lpnmtdi); |
1568 if (string !is null) { | 1568 if (string !is null) { |
1569 Shell shell = getShell (); | 1569 Shell shell = getShell (); |
1570 string = Display.withCrLf (string); | 1570 string = Display.withCrLf (string); |
1571 int length_ = string.length; | 1571 int length_ = string.length; |
1572 char [] chars = new char [length_ + 1]; | 1572 char [] chars = new char [length_ + 1]; |