Advertisement

12.27.2007 at 02:44PM PST, ID: 23046097
[x]
Attachment Details

How do you detect the parent node of a treeview in a drag and drop operation?

Asked by cnickerson in C++ Builder, C / C++ / C# Editors and IDEs

Tags: , , , ,

i know how to complete a drag and drop but I am using a valuelisteditor and want to change the cursor depending on where the cursor is located in the treeview??? how is this possible....I either can't make it work or it crashes.....any help please I know I have do something in the DragOver event of treeviewStart Free Trial
1:
2:
3:
4:
5:
void __fastcall TNetworkConfig::TreeView1DragOver(TObject *Sender, TObject *Source, int X, int Y, TDragState State, bool &Accept)
{
  if(Source->InheritsFrom(__classid(TValueListEditor)))
     Accept = true;
}
[+][-]12.31.2007 at 05:19AM PST, ID: 20554494

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.31.2007 at 09:05AM PST, ID: 20556139

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.03.2008 at 04:05AM PST, ID: 20572106

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C++ Builder, C / C++ / C# Editors and IDEs
Tags: changing, node, parent, treeview, valuelisteditor
Sign Up Now!
Solution Provided By: itsmeandnobodyelse
Participating Experts: 2
Solution Grade: A
 
 
[+][-]01.03.2008 at 05:54AM PST, ID: 20572746

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628