Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Treeview expand nodes when doing oledrop

Status
Not open for further replies.

AlastairP

Technical User
Feb 8, 2011
286
AU
Does anyone know how to make treeview nodes expand when performing a oledrop to a closed node?

For example, something that would achieve the below?

IF mouse pointer is over closed node and mouse left button is down and oledropmode=1
node(index).expanded=.t.
endif
 
It's a bit like trying to open a door with a tray needing both hands to hold it.

I have done treeviews with a general drop code for any drop operation and forwarding the ole data to the nodes that need it depending on the nature of that data.
If that doesn't help much, because the user would need to drill down several root nodes to see, where he actually wants to drop data, it's really not your job to autoopen nodes. I wouldn't go that route. But what you need for this obviously is the mouseover, mousemove, mouseenter, getitemfrompoint would also help.

I don't know about the ms treeview, but the Exontrol Exgrid as the mouse events and getitemfrompoint, which would enable that kind of ui automatism.

Bye, Olaf.
 
Craig said:
Doug Hennig has written several articles about using the treeview ....

That answer is not particularly helpful. Alastair had a specific question about the treeview. He could spend quite a long time reading Doug's papers, but he still won't find the answer to that question.

(The above remark is no reflection on quality of Doug's papers, or course.)

Mike



__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
But he could also find the answer quickly and get the problem solved. If someone wants me to SOLVE their issue, they can pay me. Otherwise, I'm going to help them become self-supporting and learn how to research solutions or add to their resources.

Craig Berntson
MCSD, Visual C# MVP,
 
Craig said:
But he could also find the answer quickly and get the problem solved. If someone wants me to SOLVE their issue, they can pay me. Otherwise, I'm going to help them become self-supporting and learn how to research solutions or add to their resources.

To be honest, I don't understand the OP's question never mind being able to offer a solution but it does seem to be a specific question rather than the 'could someone write this project for me', type question which I see on many forums. Tek-tips has gone into decline recently and I wonder if it is in part due to 'experts' not wanting to give away their knowledge.

I have been grateful for help on many occasions and sometimes wish I could show my gratitude with something more alcoholic than a purple star (or packets of custard cream biscuits for the less earthly).


Keith
 
For the record,
Being pointed in the right direction is enough for me.
The help that I have received over the years in this forum have been invaluable.
However, sometimes a significant amount of time could be wasted trying to do something that might just not be possible or not work very well.
Thumbs up to those who are prepared to spend their valuable time helping out

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top