Questions tagged [topendialog]

topendialog is a non visual VCL component wrapping a file-selection dialog. It is defined in Dialogs.pas.

42 questions
16
votes
1 answer

Why is trying to open a TOpenDialog spawning a ton of threads?

I've got a very simple form with a TOpenDialog and a button on it. When I press the button, it calls Execute on the dialog. If I watch in the debugger, the act of opening the dialog box spawns something like 14 threads, and they don't go away when…
Mason Wheeler
  • 82,511
  • 50
  • 270
  • 477
10
votes
1 answer

Using custom styles shows invalid characters when right-clicking a file in TOpenDialog

See steps below to reproduce. Works well in XE2 but not XE8. Create a new VCL Forms Application - Delphi Place a TButton and a TOpenDialog on the form In the button OnClick event call OpenDialog1.Execute Run the program, open the file dialog, and…
Thomas
  • 375
  • 1
  • 2
  • 11
10
votes
4 answers

Delphi 7 and Vista/Windows 7 common dialogs - events do not work

I'm trying to modify the Delphi 7 Dialogs.pas to access the newer Windows 7 Open/Save dialog boxes (see Creating Windows Vista Ready Applications with Delphi). I can display the dialogs using the suggested modifications; however, events such as…
JeffR
  • 313
  • 6
  • 13
7
votes
4 answers

What is the most common way to create a folder selection dialog using Delphi?

There doesn't appear to be a simple component available to create a folder selection dialog in Delphi 2009, although a file selection dialog is provided by way of the TOpenDialog. What is the most common way to create a modern folder selection…
Rowan
  • 2,384
  • 2
  • 21
  • 22
6
votes
1 answer

Custom preview for open dialog using Delphi

I need to preview several CAD formats in the file open dialog box in Windows 7 / Vista. In the past I used a Delphi Preview Open Dialog and I could register and implement the CAD format that I had to preview. I have found some articles on how to…
PierreS
  • 61
  • 1
  • 2
5
votes
1 answer

Unintended tStringGrid.OnFixedCellClick firing behind tOpenDialog

I use Delphi Berlin on Windows 10. I need to use tOpenDialog on a tStringGrid based tForm. When I double click a file which overlaps a fixed column or row on an open dialog onFixedCellClick event fires automatically right after the disapperance of…
JO SeongGng
  • 567
  • 3
  • 18
4
votes
1 answer

Application hangs when Open/Save dialog in windows 7

I have an application written by Delphi 7 and this application works fine in windows XP. Now i has upgrade my pc to windows 7 and everythings works fine with this application except when i click the button which will execute the TOpenDialog and…
3
votes
0 answers

How to make TSaveDialog customization dpi aware / scaleable?

Using Delphi 2010 I have customized a TSaveDialog using the resource template approach as shown in TOpenPictureDialog in Delpi's ExtDlgs. The template approach allows me to successfully insert a form containing several controls in the system save…
Gerrit Beuze
  • 903
  • 2
  • 10
  • 26
3
votes
1 answer

Using VCL Styles gives a exception / crash in TOpenDialog

I am experiencing a crash / exception when using a simple TOpenDialog with VCL Styles enabled. Without the styles enabled, the dialog is of course working fine. The issue occurs with C++ Builder 10 and 10.1 Professional. To reproduce: create a…
Tom Major
  • 283
  • 1
  • 12
2
votes
3 answers

Exception in TOpenDialog when closing program

When I use TOpenDialog, after closing the program, there is an exception in the Vcl.Forms module. Program I'm using: std::auto_ptr OpenDialog (new TOpenDialog(this)); if ( OpenDialog->Execute() ){} Exception: 'access violation at…
Jacek
  • 63
  • 1
  • 8
2
votes
2 answers

OpenDialog does not show up in Delphi MultiThreaded application

i tried to use the openDialog in new thread but it made so strange behavior .. if i put the if opendialog.execute then in the create constructor like this : constructor TChatMemberThread.Create(Name: string); begin inherited Create(True); FName…
2
votes
1 answer

File Open Dialog with Preview in Delphi 10.3

I changed for Delphi 10.3 and its default TOpenDialog contains a preview pane. I made some searches and found the IFileDialogCustomize interface provided by Microsoft to customize standard WinAPI dialogs. I know I have to use the OnSelectionChange…
SOLID Developper
  • 672
  • 4
  • 12
2
votes
1 answer

Open / save file dialog set focus to the file list view

is it possible to open TOpenDialog, TSaveDialog with focus set to the file list view instead of file name edit box ? Thanks a lot Regards
user532231
2
votes
0 answers

Delphi debugger crash (OpenDialog + compressed exe)

A few days ago I encountered a strange bug Whenever my program (under debugging) tries to open a savedialog Delphi 2007 IDE crashes with an external exception. I narrowed it down to any folder containing an exe compressed by upx located. I.e. if all…
Anton Duzenko
  • 2,366
  • 1
  • 21
  • 26
2
votes
5 answers

Delphi 7 - Embedded file open dialog in a form

Does anyone know if it is possible to embed a file open dialog inside your own form? We have a tabbed dialog and on one of the tabs we want the user to be able to browse for a file with the same functionality as the the standard open dialog e.g. …
Jamie
  • 3,150
  • 2
  • 26
  • 35
1
2 3