Changeset 85:a155324d7a44
- Timestamp:
- 02/06/08 13:33:24
(1 year ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
make table text visible
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r82 |
r85 |
|
| 5977 | 5977 | buffer [length_++] = 0; |
|---|
| 5978 | 5978 | static if (OS.IsUnicode) { |
|---|
| 5979 | | OS.MoveMemory (plvfi.item.pszText, buffer.ptr, length_ * 2); |
|---|
| | 5979 | OS.MoveMemory (plvfi.item.pszText, StrToTCHARz( buffer[0..length_] ), length_ * 2); |
|---|
| 5980 | 5980 | } else { |
|---|
| 5981 | 5981 | OS.WideCharToMultiByte (getCodePage (), 0, buffer.ptr, length_, plvfi.item.pszText, plvfi.item.cchTextMax, null, null); |
|---|
| r73 |
r85 |
|
| 1195 | 1195 | if (index is 0) { |
|---|
| 1196 | 1196 | if (string ==/*eq*/text) return; |
|---|
| 1197 | | super.setText (string); |
|---|
| | 1197 | super.setText (string.dup); |
|---|
| 1198 | 1198 | } |
|---|
| 1199 | 1199 | int count = Math.max (1, parent.getColumnCount ()); |
|---|
| 1200 | 1200 | if (0 > index || index > count - 1) return; |
|---|
| 1201 | 1201 | if (strings is null && index !is 0) { |
|---|
| 1202 | | strings = new char[] [count]; |
|---|
| | 1202 | strings = new char[][] (count); |
|---|
| 1203 | 1203 | strings [0] = text; |
|---|
| 1204 | 1204 | } |
|---|
| 1205 | 1205 | if (strings !is null) { |
|---|
| 1206 | 1206 | if (string==/*eq*/strings [index]) return; |
|---|
| 1207 | | strings [index] = string; |
|---|
| | 1207 | strings [index] = string.dup; |
|---|
| 1208 | 1208 | } |
|---|
| 1209 | 1209 | if ((parent.style & DWT.VIRTUAL) !is 0) cached = true; |
|---|