
Index
Subject: Problem Loading/Saving from File
From: tiagorubin@hotmail.com (Newsgroups) Steema Software SL
Newsgroup: steema.public.teetree2
Date: Fri, 28 Oct 2005 18:43:31 +0200
I've created a simple application with a TeeTree and an ImageShape in it.
When I try to load from a file, I get a message "Class TImageShape not
found. Continue?" and my Image Shape (previously saved) is not loaded into
the tree.
Any ideas?
The following code is what I'm using to load/save the tree.
Thanks in advance.
T.Santos
====================================
procedure TForm1.Button1Click(Sender: TObject);
begin
tree.Clear;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
Tree.NoOwnerShapes := false;
SaveTreeToFile(TCustomTree(Tree), 'c:test.ttr');
end;
procedure TForm1.Button3Click(Sender: TObject);
begin
LoadTreeFromFile(TCustomTree(Tree), 'c:test.ttr');
end;