Garneau
asked on
How make a TreeView in run-time...
SOMEBODY SPEAK FRENCH... ???
I'm not bilingual but i try to explain to you my easy question...
I know it's stupid but i very don't know how to make a treeview in run-time...
And after the TreeView is OK, how can include a file in a repertory of my TreeView...
For example:
Members
Inscription
How can i do to, when i click on "inscription" i can see all of inscriptions of member (with name, phone number, city...)
I'm not bilingual but i try to explain to you my easy question...
I know it's stupid but i very don't know how to make a treeview in run-time...
And after the TreeView is OK, how can include a file in a repertory of my TreeView...
For example:
Members
Inscription
How can i do to, when i click on "inscription" i can see all of inscriptions of member (with name, phone number, city...)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Adjusted points to 200
Hi Garneau, why did you increase the points?
ps. I really have to tell you this :
when destroying!
you have to destroy all the added objects yourself!!! don't forget to do this, otherwise you'll have a serious resource leak!
Zif.
ps. I really have to tell you this :
when destroying!
you have to destroy all the added objects yourself!!! don't forget to do this, otherwise you'll have a serious resource leak!
Zif.
ASKER
>why did you increase the points?
I do this because I did't not what to do ? ;)
Sorry...
And i don't understand what this mean (in french):
>ps. I really have to tell you this :
> when destroying!
>you have to destroy all the added objects yourself!!! don't >forget to do this, otherwise you'll have a serious resource >leak!
I'm sorry i make my possible, but i'm not bilingual... :)
Sorry, mon anglais est vraiment pas très terrible... ;)
Thank's
(My real name is Danielle...) :)
I do this because I did't not what to do ? ;)
Sorry...
And i don't understand what this mean (in french):
>ps. I really have to tell you this :
> when destroying!
>you have to destroy all the added objects yourself!!! don't >forget to do this, otherwise you'll have a serious resource >leak!
I'm sorry i make my possible, but i'm not bilingual... :)
Sorry, mon anglais est vraiment pas très terrible... ;)
Thank's
(My real name is Danielle...) :)
Bonsoir, Danielle,
ok.
When you use AddChildObject, you create memmory for the object you add with the node.
Well, when destroying the tree, you also remove the memmory for every added object.
Example :
MyObject := TMyObject.Create;
AddChildObject(LastAddedNo de,'NAME', MyObject);
When destroying, you need to destroy the object yourself!
e.g.
procedure TForm1.FormDestroy(Sender: TObject);
begin
{Free here memmory of TMyObject!}
Treeview1.Free;
end;
ok.
When you use AddChildObject, you create memmory for the object you add with the node.
Well, when destroying the tree, you also remove the memmory for every added object.
Example :
MyObject := TMyObject.Create;
AddChildObject(LastAddedNo
When destroying, you need to destroy the object yourself!
e.g.
procedure TForm1.FormDestroy(Sender:
begin
{Free here memmory of TMyObject!}
Treeview1.Free;
end;
ASKER