topendialog is a non visual VCL component wrapping a file-selection dialog. It is defined in Dialogs.pas.
Questions tagged [topendialog]
42 questions
2
votes
1 answer
Why don't the open and save dialogs show files matching the selected filter?
I want my open and save dialogs to display XML files.
I have this definition:
// The save dialog
dlg := TSaveDialog.Create(nil);
dlg.Options := [ofOverwritePrompt];
dlg.Title := 'Seleccione la ubicación del archivo';
dlg.Filter := 'Xml | *.xml |…

ramiromd
- 2,019
- 8
- 33
- 62
1
vote
2 answers
Why does Delphi TOpenDialog fail to open in the Initial Directory?
I am using TOpenDialog (in Delphi 10.4) to show the user the PDF files I have installed for them in their Documents folder. In that folder, I have created a folder MyFolder10.2 and copied the PDF files there.
The code is simple and has worked in the…

Scott Stalheim
- 165
- 2
- 12
1
vote
1 answer
Delphi OpenDialog filename display problem
Put an OpenDialog component on a new form and this code in OnCreate
opendialog1.filename:='This is a long filename.txt';
opendialog1.execute;
When the app runs the dialog appears with the filename displayed in the opendialog, but the filename is…

Some1Else
- 715
- 11
- 26
1
vote
2 answers
Is there a way to disable the hint for a TOpenDialog in delphi?
I have a TOpenDialog component I am creating on runtime and I want to disable the hint that pops up over files when it is used. I have not written any exrta code for this than creating the object, executing the object and extracting the filename,,…

Arthur
- 3,376
- 11
- 43
- 70
1
vote
1 answer
Delphi Can I have AutoLogin to shared maps on a server using TOpenDialog
A program running on computer "A" wants to download a file "F" in map "M" from computer "B".
I use the following preparaions:
dlgSelectImportFile.InitialDir := '\\192.168.1.59';
dlgSelectImportFile.Options :=[ofOldStyleDialog];
As computer "B"…

larand
- 773
- 1
- 9
- 26
1
vote
2 answers
How to get selected files from TOpenDialog exactly in the order they were selected in?
I use a TOpenDialog component in Delphi XE7, because I want to select one or more files. However, after I select them and click OK, the selected files are stored already sorted alphabetically, from A to Z, in the Files property, thing which I do not…

Bogdan Doicin
- 2,342
- 5
- 25
- 34
1
vote
1 answer
Getting Special Folder Path from OpenDialog selection in Delphi
I let my users select a folder via the OpenDialog component.
However, when they select a folder such as Documents or My Videos or something like that, the path is just the name of the folder.
I can get the path of such folder via the API, but how do…

vaid
- 1,390
- 12
- 33
1
vote
4 answers
How to set a sorting mode in Open Dialog
A user can manually sort files in a standard Windows Open Dialog (in "Details" view mode) by Name, Date or Size by clicking on the corresponding column header. How to set a sorting mode in Open Dialog (TOpenDialog class in Delphi) programmatically…

kludg
- 27,213
- 5
- 67
- 118
1
vote
2 answers
How to get the handle of a Vista style Open/SaveDialog?
I'd like to get the window handle of a new vista-style Open/SaveDialog opened by my Delphi application.
It was possible with the old style dialog by parsing OnShow, but with the new style dialog there is no such event.
Is there a possibility maybe…

Steve
- 2,510
- 4
- 34
- 53
1
vote
2 answers
How to bring an OpenDialog hidden by another window to the front
I have an application with multiple forms and a separate taskbar button for each form.
Let's say form2 displays an OpenDialog, I click away to another maximized application covering the full screen area, then I go back to form2 by selecting it's…

Steve
- 2,510
- 4
- 34
- 53
1
vote
1 answer
Why does the compiler say my form's variable is undeclared in my procedure?
I would like to read a CSV file to Delphi (DBGrid) as suggested in the sample project here. I have a simple form where I defined TOpenDialog and elements from the TCsvTransform. The project does not compile when I am trying to create a procedure…

Konrad
- 17,740
- 16
- 106
- 167
1
vote
1 answer
Delphi, openDialog, no window appears on click
I'm currently trying to slightly modify this tutorial on loading the Excel file into Delphi. I would like to use OpenDialog in order to get the file path and start subsequent procedures loading the file to the text box and launching the connecting…

Konrad
- 17,740
- 16
- 106
- 167
1
vote
1 answer
TOpenDialog in Delphi - how to open only file with given name
User should open only "KLADR.DBF" file. I'm setting "Filter" property to "kladr.dbf" and dialog shows only required file, but in the same directory there are another ".DBF" file (STREET.DBF) and user can open it by typing it's name in "Filename:"…

boombastic
- 85
- 1
- 5
1
vote
2 answers
TopenDialog/TSaveDialog with owner-drawn items
I want to implement the traditional open and save dialogs (and the underlying items being dealt with are files), but I want to have control over what is displayed in place of the filename, and include some graphics - i.e. I need an "ownerdraw" style…

rossmcm
- 5,493
- 10
- 55
- 118
0
votes
0 answers
How can I translate the captions of the TOpenDialog/TSaveDialog dialogs in Delphi 11.1.5?
I could translate the Captions[] and ButtonCaptions[] used by MessageDlg if I set the appropriate constants in the Vcl.Consts.pas.
But as I can see there is no such an easy solution like this for TOpenDialog and TSaveDialog. These are Windows…

SOLID Developper
- 672
- 4
- 12