Is it possible to add these 2 methodes (LoadFomFile & SaveToFile) to UniTreeView ?
(File ? a Text one).
In a big structure, scan records from a DataBase, UniTreeView can take big times
(It's not because of Unigui, this is from the sweep DB : While Not Query.Eof do ..... Query.Next).
In a previous VCL project I used these two methodes and it was very fast as a formula 1 :
Just write manually a Text, with spaces and it works impeccably (all nodes take their place).
See in attachment example.
In related topcs :
FreeMan uses XML. But it required Mirosoft XML to be installed. So not a good solution.
Stiaas uses a VCL code, I Could'nt exported it to Unigui : Methode .MoveTo does'nt exists.
So, I tried to modify the UniTreeViews.pas to add all procedures from unit Vcl.ComCtrls like :
procedure TTreeStrings.LoadTreeFromStream(Stream: TStream; AEncoding: TEncoding);
procedure TTreeStrings.SaveTreeToStream(Stream: TStream; AEncoding: TEncoding);
But after 3 hours, I had to leave (too difficult for me).
Can you do it please Farshad, or is there an alternate soution from ExtJS ?
VCL LoadFromFile Project