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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

:-\ Need aTTreeView and a TListVie combined a certain way

Status
Not open for further replies.

cyprus106

Programmer
Apr 30, 2001
654
OK, so I've got a program that requires the TTreeView's hierarchal branches, (in other words, i need to be able to press that Plus button to the left and still show the subitems below with the little line and everything), but a header on the top, like the ListView's ViewStyle=vsReport property. So f.e...

HEADING1 HEADING1 HEADING3
+MyItem
-SubItem1 SI1Props SI1Props2
-SubItem2 SI2Props SI2Props2
+MyNextItem

if that makes sense... I swear I've seen this done in a few programs before, (if i find which I'll post them) but I can't seem to make it work with either the list or the treeview. I used the THeaderControl to put over the TTreeView so it LOOKS like what I need, but there's no columns in the TreeView, so it's useless. I've got to have both things exactly like the example but I've tried to emulate it and it just doesn't work...



Cyprus
 
There was an article in Borland C++ Developers Journal a couple of years ago that told how to combine the TreeList with a ListView to make a "TreeListView"." I found the article but you have to be a subscriber to see it. [sad] If you have a subscription, go to bdbjournal.org and look for July 2002's issue.

James P. Cottingham

There's no place like 127.0.0.1.
There's no place like 127.0.0.1.
 
Oh no!!! I actually REMEMBER that article now!! I had a subscription but it ran out last year and half of my hard copys have been picked away by the office drones. I tried logging in a few days ago with my old psw and it wouldn't let me. I should at least be able to view the articles I published during my subscription perioid. Worse still,

if (paycheck <= (rent + food))
subscription = NULL;

creek = up - paddle *sigh*

Cyprus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top