summaryrefslogtreecommitdiff
path: root/src/frm_main.pas
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2009-10-12 00:38:35 +0200
committerGraeme Geldenhuys <graemeg@gmail.com>2009-10-12 00:38:35 +0200
commit0d679953084ca02fe86bf01e7b6766de8fb9f826 (patch)
tree6cd7dc5d3d6a34c67272b4f7fc8f22d131d380db /src/frm_main.pas
parent4f936367835e0c4a405bb6b4a49303f1e85a746d (diff)
downloadfpGUI-0d679953084ca02fe86bf01e7b6766de8fb9f826.tar.xz
Help file header debug info is now richtext formatted.
Signed-off-by: Graeme Geldenhuys <graemeg@gmail.com>
Diffstat (limited to 'src/frm_main.pas')
-rw-r--r--src/frm_main.pas31
1 files changed, 16 insertions, 15 deletions
diff --git a/src/frm_main.pas b/src/frm_main.pas
index 17b9ddf4..ea0ec9c0 100644
--- a/src/frm_main.pas
+++ b/src/frm_main.pas
@@ -201,26 +201,27 @@ procedure TMainForm.miDebugHeader(Sender: TObject);
var
f: THelpFile;
i: integer;
+ sl: TStringList;
begin
-{
- Memo1.Lines.Clear;
- Memo1.Lines.BeginUpdate;
+ Memo1.Clear;
+ sl := TStringList.Create;
f := THelpFile(Files[0]);
- with Memo1.Lines do
+ with sl do
begin
- Add('Filename: ' + f.Filename);
- Add('----------');
- Add('Title: ' + f.Title);
- Add('Dictionary count:' + IntToStr(f.DictionaryCount));
- Add('Topic count: ' + IntToStr(f.TopicCount));
- Add('Index count: ' + IntToStr(f.Index.Count));
+ Add('<b><u>Filename:</u></b> <red>' + f.Filename + '<black>');
+ Add('');
+ Add('<b>Title:</b> ' + f.Title);
+ Add('<b>Dictionary count:</b> ' + IntToStr(f.DictionaryCount));
+ Add('<b>Topic count:</b> ' + IntToStr(f.TopicCount));
+ Add('<b>Index count:</b> ' + IntToStr(f.Index.Count));
Add(' ');
- Add('Dictionary contents:');
- for i := 0 to f.DictionaryCount-1 do
- Add('[' + IntToStr(i) + '] = <' + f.DictionaryWords[i] + '>');
+ //Add('Dictionary contents:');
+ //for i := 0 to f.DictionaryCount-1 do
+ // Add('[' + IntToStr(i) + '] = <' + f.DictionaryWords[i] + '>');
end;
- Memo1.Lines.EndUpdate;
-}
+ Memo1.AddText(PChar(sl.Text));
+// Memo1.Lines.EndUpdate;
+ sl.Free;
end;
procedure TMainForm.miDebugHex(Sender: TObject);