Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

TTreeView and TListView Find similar branches


$Hic0   (2001-12-16 11:49) [0]

Can anyone have a clever example of how to work with these components, how to link them, how to transfer data from one to another on the OnChange event :) If there is, it would be nice :)
Thanks in advance



SergeyVP   (2001-12-19 06:11) [1]

I did something like this

for Tree.OnChange:
------
List.Items.Clear; for i: = 0 to Tree.Selected.Count-1 do begin ListItem: = List.Items.Add; ListItem.Caption: = Tree.Selected.Item [i] .Text; ListItem.ImageIndex: = Tree.Selected.Item [i] .ImageIndex; end;
---------

for List.OnChange:
---------
Tree.Selected.Item [List.Selected.Index] .Selected: = true;
----------

It turned out when selecting an item in the Tree, the list of child nodes was loaded into the List, and when selected, the selected one was selected in the List.
What is not clear - ask.



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.81 MB
Time: 0.038 c
3-21930
Roman55
2001-12-04 16:37
2002.01.08
BDE


1-22045
Socol
2001-12-15 17:14
2002.01.08
Write to file.


1-22155
based on
2001-12-20 16:32
2002.01.08
Lock the folder!


1-22099
Yulyashka
2001-12-19 17:43
2002.01.08
Question about DBGrid !!


4-22492
neverbee
2001-11-06 12:11
2002.01.08
Opening a Word Document. (+)





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish