Changeset 85:a155324d7a44

Show
Ignore:
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
  • dwt/widgets/Table.d

    r82 r85  
    59775977                    buffer [length_++] = 0; 
    59785978                    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); 
    59805980                    } else { 
    59815981                        OS.WideCharToMultiByte (getCodePage (), 0, buffer.ptr, length_, plvfi.item.pszText, plvfi.item.cchTextMax, null, null); 
  • dwt/widgets/TableItem.d

    r73 r85  
    11951195    if (index is 0) { 
    11961196        if (string ==/*eq*/text) return; 
    1197         super.setText (string); 
     1197        super.setText (string.dup); 
    11981198    } 
    11991199    int count = Math.max (1, parent.getColumnCount ()); 
    12001200    if (0 > index || index > count - 1) return; 
    12011201    if (strings is null && index !is 0)  { 
    1202         strings = new char[] [count]
     1202        strings = new char[][] (count)
    12031203        strings [0] = text; 
    12041204    } 
    12051205    if (strings !is null) { 
    12061206        if (string==/*eq*/strings [index]) return; 
    1207         strings [index] = string
     1207        strings [index] = string.dup
    12081208    } 
    12091209    if ((parent.style & DWT.VIRTUAL) !is 0) cached = true;