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!

How to place a "Location Bar" in TOpenDialog ?

Status
Not open for further replies.

Farahani

Programmer
May 5, 2002
9
IR
Hi!
Have you ever noticed difference between Open dialogs in new windows programs (eg. Notepad in WinMe,Win2000) and TOpenDialog in Delphi5 ?

There is toolbar in the left of dlg called LocationBar, PlacesBar or ... which contains quick links to special folders like MyDoc,Desktop,etc.

How can we include a LocationBar in our delphi5 projects ? (I don't know if Delphi6 has it or not).

Bye!
 
Hi,

The Topendialog is a windows API wrapper for opening files. On evey platform it will open the dialogbox as defined on that operating system. You do not have much control over the appearance of the dialog box or whats on it.
If you want to open files and the dialog should look on every platform the same donn't use TOpendialog but search the internet for an other opendialog component.

Steph [bigglasses]
 
Or you could make one yourself
Allm an open dialog does is let you browse for files and pick a filename. So you can create a Modal Form and stick on the bits you need to make it look like a new style Open dialog.


To achive the file browseing You can Either do it programaticaly with the 'Findnext' etc functions, or use the Old Bits:- Directory, File and Drive List box components. If you have a W3.1 component set.

Or make one using the W32 Components eg Treeview and/or Listview (quite a bit more work needed here).
There is also a directoryoutline componet in 'Samples' I don't know if that is still in the newer versions of Delphi 5 and 6.

Steve

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top