Hi again,
Got another problem. When attempting to make a graph "full view" (ie. on another form in a bigger state) the previous "thumbnail" of the graph is disappearing. Here is the code:
procedure TfrMain.FullviewClick(Sender: TObject);
begin
frMain.Hide;
GraphName := PopupMenuGraph.PopupComponent.Name;
For Search := 1 to 40 do
Begin
If GraphName = Graph[Search].Name then
Begin
Found := Search;
Break;
end;
end;
Tmp[2] := Graph[Found];
Tmp[2].Name := 'FullviewGraph';
frFullview.Fullview := Tmp[2];
frFullview.Fullview.Parent := frFullview;
frFullview.Fullview.Height := 497;
frFullview.Fullview.Width := 793;
frFullview.Fullview.Left := 16;
frFullview.Fullview.Top := 16;
frFullview.Show;
end;
As you can see, the "thumbnail" of the graph is stored in Graph[Found]. Tmp[2] then copies Graph[Found]. Tmp[2] is loaded to a TChart on another form. When frFullview is hidden again and frMain is shown, the Chart found in Graph[Found] has disappeared and a blank space is left.
What i dont understand is where it has gone?
Thanks for the help.
Regards
Justin
Problem with a Chart disappearing
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Justin,
Could you please send us an example project we can run "as-is" to reproduce the problem here?
You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
Thanks in advance.
Could you please send us an example project we can run "as-is" to reproduce the problem here?
You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |