Home > Back-end >  After C builder TSaveDialog controls click save, how to let TSaveDialog don't disappear?
After C builder TSaveDialog controls click save, how to let TSaveDialog don't disappear?

Time:10-23

Save the path already exists, sometimes you want to save, but TSaveDialog dialog box has shut down,

CodePudding user response:

TSaveDialog just returns a file name, you need to select dialog box is a directory?

CodePudding user response:

Is TSaveDialog, save as dialog box, how can I click save, not to lose the dialog? Because I have to judge, the returned path in the directory already exists? If there is I need to rename, but after a implement the Execute method, the save as dialog disappears,

CodePudding user response:

refer to the second floor kq198811 response:
is TSaveDialog, save as dialog box, how can I click save, not to lose the dialog? Because I have to judge, the returned path in the directory already exists? If there is I need to rename, but after the execution of the Execute method, the save as dialog disappears,

Make a dialog

CodePudding user response:

refer to the second floor kq198811 response:
is TSaveDialog, save as dialog box, how can I click save, not to lose the dialog? Because I have to judge, the returned path in the directory already exists? If there is I need to rename, but after the execution of the Execute method, the save as dialog disappears,


Be this requirement, dialog box to add an existing file suggest not to go?
 SaveDialog1 - & gt; The Options=SaveDialog1 - & gt; The Options & lt; SaveDialog1 - & gt; FileName="1234. TXT"; 

If (SaveDialog1 - & gt; The Execute ())
{
ShowMessage (SaveDialog1 - & gt; FileName);
}

CodePudding user response:

Master, thank you very much, problem solving,
  • Related