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.55 MB
Time: 0.033 c
6-22268
Voha
2001-10-05 13:25
2002.01.08
There is no referer parameter in the WebBrowser component.


14-22399
Mcsimm
2001-11-11 12:01
2002.01.08
Formatting in the answers


14-22325
Olgerd
2001-11-04 19:05
2002.01.08
Distribution


14-22355
frostbite
2001-11-06 12:39
2002.01.08
Translation


14-22342
Dense
2001-11-05 18:52
2002.01.08
Competition! Wallpaper for the game (site) Sea Fight!





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