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

Вниз

Как перетащить элемент в Treeview е   Найти похожие ветки 

 
multik   (2003-02-24 19:41) [0]

Столкнулся с проблемой:
у Treeview в инспекторе написал следующие
dragkind - dkdrag
dragmode - dkautomatic
Но в событии перетаскивания не знаю, что писать. Вообще как можно заставить перетаскивать в treeview.
Поскажите пожалуйста. Это последний штрих в моей проге.


 
Cobalt   (2003-02-24 22:46) [1]

Надеюсь, это поможет:
DropTarget
Specifies which item in the tree view appears as the target of a drag and drop operation.
property DropTarget: TTreeNode;

Description

Read DropTarget to determine whether a node in the tree view is drawn as the target of a drag and drop operation. Set DropTarget when specifying a particular node in the tree view as the drop target of a dragged item.

Note: When DropTarget is set, the application must still handle the actual logic of accepting the dragged object by the indicated node.
---------------------------------------------
TCustomTreeView.GetNodeAt
Returns the node that is found at the specified position.

function GetNodeAt(X, Y: Integer): TTreeNode;

Description

Call GetNodeAt to access the node at the position specified by the X and Y parameters. X and Y specify the position in pixels relative to the top left corner of the tree view. If there is no node at the location, GetNodeAt returns nil.


 
multik   (2003-02-25 00:10) [2]

Я перевёл, но не получается нечего. При переаскивании курсор имеет знак запрета. Покапался в справке, хоть и у меня слабые знания в ан.яз, но нашёл MoveTo(Destination: TTreeNode; Mode: TNodeAttachMode);
Поидее это то самое, что я ищу, но нечего не получается. Пожалуйста подскажите, где можно хоть посмотреть исходники или хотя бы принцип работы. Заранее спасибо.


 
MBo   (2003-02-25 06:17) [3]

В раздел Статьи не заглядывал?



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

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

Наверх





Память: 0.44 MB
Время: 0.013 c
1-17071
IVANOV
2003-02-22 08:16
2003.03.06
Глобален ли TScreen?


4-17435
KPV-10k
2002-12-19 21:04
2003.03.06
Оконо во весь экран...


14-17356
Cobalt
2003-02-18 00:55
2003.03.06
Говорят, что тут недавно была атака на сайт


14-17375
AK-74
2003-02-18 19:41
2003.03.06
Есть здесь студенты СГУ?


14-17352
Юров Владимир
2003-02-18 12:27
2003.03.06
Не могу выложить программу!!!





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