Solved

Writing Database Explorer

Posted on 1998-11-07
10
162 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using idhttp to login to instagram 2 91
Delphi Yen format 3 35
how can i search if string exist in array ? 3 59
PHP preg_replace code convert to Delphi 14 57
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

831 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