topendialog

Using VCL Styles gives a exception / crash in TOpenDialog

≡放荡痞女 提交于 2020-01-03 02:41:13
问题 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 simpe VCL Form that uses styles add a TComboBox, a TButton and a TOpenDialog to the form add the following code to the OnClick event for the button OpenDialog1->Execute(); for(int i=0; i<100; i++) ComboBox1->Items->Add("test text"); ComboBox1->ItemIndex

Passing file path in Delphi from TOpenDialog as a string

早过忘川 提交于 2019-12-24 21:35:33
问题 I'm trying to make use of the TOpenDialog in order to pass the path to selected file to the AdoConection and load the content of the Excel file to the table. I'm currently attempting the code below but the last part of the code does not connect to the Excel returning an error: [dcc32 Error] sample_map.pas(80): E2010 Incompatible types: 'string' and 'TOpenDialog' procedure TForm1.Button1Click(Sender: TObject); var openDialog : TOpenDialog; // Open dialog variable strConn : WideString; //

Delphi - How to get Directory with OpenDialog using iPhone as a picture source

我是研究僧i 提交于 2019-12-20 07:19:11
问题 I have a Delphi app (D2010) which lets the user select a JPG file via an OpenDialog. When I select the file from a normal Windows directory, my TOpenDialog.Filename contains the FULL PATH to the file, and my code works. The issue I am running into is that the user will often be copying the file phone a cell phone. When the user plugs in the phone, runs my code, the TOpenDialog Shows the files on the cell phone, the user picks the proper jpg file, but the TOenDialog.Filename does NOT contain

OpenDialog does not show up in Delphi MultiThreaded application

女生的网名这么多〃 提交于 2019-12-12 09:06:53
问题 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 := Name; FreeOnTerminate := True; Opendialog := TOpenDialog.create(nil); if opendialog.execute then for 0 to opendialog.filescount do somecodeishere end; end; the opendialog open normally but when i put it in the execute producer of the thread it didn

How to bring an OpenDialog hidden by another window to the front

二次信任 提交于 2019-12-11 06:57:39
问题 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 taskbar button. Voila! The OpenDialog is hidden behind the other application I selected, and I have to click on the now non-accessible form2 to bring the dialog back to the front. This is really annoying and may confuse the user. Here is some code to

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

痴心易碎 提交于 2019-12-10 02:04:06
问题 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 right-click on a text file => shows menu items ok Go to Project/Options/Application/Appearance. Enable and choose a custom style (such as "Ruby Graphite") and recompile Run the program, open the file dialog, and right-click a text file => does not

Delphi 7 - Embedded file open dialog in a form

自闭症网瘾萝莉.ら 提交于 2019-12-07 21:35:50
问题 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. 'Look in' combobox, places bar, shell file list, file name comboedit with name completion etc etc. I've looked at recreating the dialog with some 3rd party components, namely Jam Shell Browser Components I can get most of the functionality this way,

Delphi 7 - Embedded file open dialog in a form

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 11:25:21
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. 'Look in' combobox, places bar, shell file list, file name comboedit with name completion etc etc. I've looked at recreating the dialog with some 3rd party components, namely Jam Shell Browser Components I can get most of the functionality this way, but I'm missing a couple of things e.g. the places bar and the filename auto completion\suggestion utku

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

北战南征 提交于 2019-12-05 01:33:04
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 right-click on a text file => shows menu items ok Go to Project/Options/Application/Appearance. Enable and choose a custom style (such as "Ruby Graphite") and recompile Run the program, open the file dialog, and right-click a text file => does not show menu items correctly (invalid characters are shown) Tested with XE8 Subscription Update 1 (and

OpenDialog does not show up in Delphi MultiThreaded application

99封情书 提交于 2019-12-04 16:43:49
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 := Name; FreeOnTerminate := True; Opendialog := TOpenDialog.create(nil); if opendialog.execute then for 0 to opendialog.filescount do somecodeishere end; end; the opendialog open normally but when i put it in the execute producer of the thread it didn't open at all !! i'm so beginner in threads so can any one explain for me what happened ? Thanks in