Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Grigore Dolghin
  Where is Grigore Dolghin?
 Bucharest
 Romania
 Grigore Dolghin
 To: Liew Wai Foong
  Where is Liew Wai Foong?
 Kuala Lumpur
 Malaysia
 Liew Wai Foong
 Tags
Subject: RE: Sorting Treeviews
Thread ID: 15868 Message ID: 15942 # Views: 1 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Friday, October 04, 2002 1:19:42 PM         
   


> Hello Grigore, what you need to do is provide some codes for drap-n-drop. I don't know how to share the sample i have with you and I also forgot where I downloaded from, but I have emailed it to you.
>
> hope it can help you
>
> waifoong

Hello,

Thank you for the sample. After I downloaded it, I did a search in my computer, looking for it. Stupid me. I had it, already, and now I know where you downloaded it: from UniversalThread magazine, June 2001 issue. It's an article signed by Cetin Basosz, named "Using TreeviewControl". Anyway, thank you so much.

The problem is the Treeview doesn't have a "MoveNode" method. Also, the .Index property of the node is read-only at runtime. Thats it: a node, once added, cannot change it's index. This means it cannot be shifted up or down. The only way is to remove the nodes and add them back, in the desired order. Because my problem was quite urgent, I did solved it in the same way. Now, reading again Cetin's article (btw, he is a tough guy in grids and treeviews), I am sure there isn't another way to do this.

For the rest of people having the same problem, here is the link: http://universalthread.com/Magazine/June2001/Treeview.zip. I strongly recommend reading the whole article, though.

On the other hand, for the people running this wonderfull site: Guys, in the last 3 years I did receive and/or download a lot of classes, code, docs, etc about FoxPro (all flavours). Most of them are freeware. Some of them aren't. In total, about 1 GB of code, classes and samples (about 55.000 files). Does anyone care to have them posted at Foxite?

First, it would be nice to have them sorted, with pros/cons for all of them
Second, I did learn a lot from them. I think anyone can learn, as I did.
Third, I'm tired to hunt all over the net when I need something. I'd like to have them all in a single place. Now, that place is my HDD. But it would be nice to have them stored in a web server. I know this means a lot of traffic and high ownership cost for the site. It is just a proposal.

Thank you, again, all of you.


Grigore Dolghin
Class Software

ENTIRE THREAD

Sorting Treeviews Posted by Grigore Dolghin @ 10/2/2002 4:58:52 PM
RE: Sorting Treeviews Posted by liew wai foong @ 10/4/2002 4:26:06 AM
RE: Sorting Treeviews Posted by Boudewijn Lutgerink @ 10/4/2002 5:58:20 AM
RE: Sorting Treeviews Posted by liew wai foong @ 10/4/2002 6:16:53 AM
RE: Sorting Treeviews Posted by Boudewijn Lutgerink @ 10/4/2002 1:02:38 PM
RE: Sorting Treeviews Posted by Grigore Dolghin @ 10/4/2002 1:19:42 PM