Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2007.11.04;
Скачать: CL | DM;

Вниз

Дерево 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;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.013 c
6-1172922118
buben
2007-03-03 14:41
2007.11.04
post послать файл на сервер


8-1168494147
roughneck
2007-01-11 08:42
2007.11.04
Быстрый способ чтения Jpeg


2-1191930542
ффф
2007-10-09 15:49
2007.11.04
фастрепорт


3-1182846549
azamatufa
2007-06-26 12:29
2007.11.04
Как показать процент?


15-1190816741
hinst
2007-09-26 18:25
2007.11.04
Elf off