Changeset 243 for oup/current/Tools


Ignore:
Timestamp:
Aug 10, 2007, 7:26:03 PM (17 years ago)
Author:
alloc
Message:
 
Location:
oup/current/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • oup/current/Tools/MetaEditor.dfm

    r241 r243  
    8585      object tab_hex: TTabSheet
    8686        Caption = 'Binary Edit'
     87        ExplicitLeft = 0
     88        ExplicitTop = 0
     89        ExplicitWidth = 0
     90        ExplicitHeight = 0
    8791        object splitter_hex_1: TSplitter
    8892          Left = 0
  • oup/current/Tools/MetaEditor.pas

    r242 r243  
    264264  i: Integer;
    265265  links: TStrings;
     266  ifile: TFile;
    266267begin
    267268  inherited;
     
    279280        end;
    280281      end;
    281       if (data.Field is _MetaTypes.TDatLink) and (Column = 2) then
     282      if data.Field is TFile then
    282283      begin
    283         links := nil;
    284         links := ConManager.Connection[FConnectionID].GetFilesList(_MetaTypes.TDatLink(data.Field).PosExts, '', False, ST_NameAsc);
    285         HintText := IntToStr(links.Count);
    286         for i := 0 to Min(links.Count - 1, 99) do
    287         begin
    288           if (i mod 5) = 0 then
    289             HintText := HintText + #13+#10;
    290           HintText := HintText + links.Strings[i] + '       ';
     284        ifile := TFile(data.Field);
     285        case Column of
     286          0: HintText :=
     287            'FileID:    ' + IntToStr(ifile.FileInfo.ID) + #13#10 +
     288            'Name:      ' + ifile.FileInfo.Name + #13#10 +
     289            'Extension: ' + ifile.FileInfo.Extension + #13#10 +
     290            '.dat-size: ' + IntToStr(ifile.FileInfo.Size) + #13#10;
    291291        end;
    292292      end;
Note: See TracChangeset for help on using the changeset viewer.