Solved

Writing Database Explorer

Posted on 1998-11-07
10
163 Views
Last Modified: 2010-04-04
I am trying to write a database explorer similar to the one provided by delphi.  I have no idea how to use the TTreeview on the left side of the application to obtain this.  All examples that I have seen tend to appear over complicated and confusing.  Please help.
0
Comment
Question by:pjerram
10 Comments
 

Author Comment

by:pjerram
ID: 1346001
I have Delphi 2 and 3
0
 
LVL 1

Expert Comment

by:venks
ID: 1346002
Have a look at the example that comes with RXLib components.It is available at Torry's Delphi pages.
regards
venks

0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1346003
pjerram, the easiest way is to use a component for this.... look at TeeTree www.Teemach.com It's shareware dough. But you can also look at RxLib first.
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
LVL 1

Expert Comment

by:rpetruni
ID: 1346004
Hi,
I really don't know about TTreeView, but if you don't mind old windows stile, you coul use :
DriveComboBox, DirectoryListBox and FileListBox
from Win3.1 controls. It's really simple to use...
0
 

Author Comment

by:pjerram
ID: 1346005
thankyou for your suggestions but I want to write it.  I want to use TreeView and I was unable to find RXlib components.
0
 
LVL 2

Expert Comment

by:333
ID: 1346006
Hi,
there is a little example how to insert intems in TreeView:

procedure TForm1.FormCreate(Sender: TObject);
var
  MyTreeNode:TTreeNode;
begin
  with TreeView1.Items do begin
    Add(nil,'Databases'); {add root node}
    MyTreeNode:=TreeView1.Items[0];
    AddChild(MyTreeNode,'DBDEMOS'); {add child nodes}
    AddChild(MyTreeNode,'DefaultDD');
    AddChild(MyTreeNode,'IBLocal');
    AddChild(MyTreeNode,'Oracle');
    MyTreeNode:=TreeView1.Items[1]; {add '+' to DBDemos, even if it has no child}
    MyTreeNode.HasChildren:=true;
  end;
end;

All items of TreeView can be accessed from Items property.
Look in help on more TTreeNode methods and properties.
If you need more, just say.

A.
0
 

Author Comment

by:pjerram
ID: 1346007
Thank you for all your help. The project is done and all your input was gratefully recieved.
0
 
LVL 1

Expert Comment

by:venks
ID: 1346008
Dear pjerram
Please award the points to someone
regards
venks
0
 

Author Comment

by:pjerram
ID: 1346009
I'm afraid I must split the points between venks and 333.  Both were of help.  Venks = 75% and 333 = 25%.  If this can be done thanx.
0
 
LVL 1

Accepted Solution

by:
venks earned 100 total points
ID: 1346010
Dear pjerram
It is not possible to split the points as per experts exchange
rules.You can throw a question specially for 333 asking him to answer and award him the points.
Regards
venks
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question