Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Начинающим";
Текущий архив: 2007.11.04;
Скачать: [xml.tar.bz2];

Вниз

Дерево TreeView   Найти похожие ветки 

 
031178 ©   (2007-10-13 11:34) [0]

Подскажите пожалуйста как мне узнать какая ветка выделена у дерева. Т.е. если выделена первая ветка, то производим одни действия, если другая, то другие. Заранее огромное спасибо


 
EvS ©   (2007-10-13 11:40) [1]

А в справку посмотреть религия не позволяет?

Specifies the selected node in the tree view.

Delphi syntax:

property Selected: TTreeNode;

C++ syntax:

__property TTreeNode* Selected = {read=GetSelection, write=SetSelection};

Description

Read Selected to access the selected node of the tree view. If there is no selected node, the value of Selected is nil (Delphi) or NULL (C++).

Set Selected to set a node in the tree view. When a node becomes selected, the tree view’s OnChanging and OnChange events occur. Also, if the specified node is the child of a collapsed parent item, the parent’s list of child items is expanded to reveal the specified node. In this case, the tree view’s OnExpanded and OnExpanding events occur as well.

If the RightClickSelect property is true, the value of Selected is the last node that was clicked in the tree view, even if it was clicked with the right mouse button.  This may differ from the node that is highlighted to indicate selection.

If the MultiSelect property is true and the MultiSelectStyle property includes msControlSelect, then Selected returns the last node clicked on, even if that click deselected the node. For a current selection status when MultiSelect is true, refer to the Selections property.



Страницы: 1 вся ветка

Форум: "Начинающим";
Текущий архив: 2007.11.04;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.44 MB
Время: 0.044 c
11-1172659990
Trible
2007-02-28 13:53
2007.11.04
TmdwDBF создание файла


2-1192352438
valenok
2007-10-14 13:00
2007.11.04
WebBrowser PopupMenu


15-1191593116
Черный Шаман
2007-10-05 18:05
2007.11.04
Что лучше широкоформатка 16:9 или классика 4:3(мониторы)


4-1178095614
NeyroSpace
2007-05-02 12:46
2007.11.04
Как узнать что ползунок ScrollBar дошел до конца прокрутки?


15-1191430223
Delphi User
2007-10-03 20:50
2007.11.04
EFS





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 Spanish 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
Английский Французский Немецкий Итальянский Португальский Русский Испанский