mirror of
https://github.com/rvtr/TwlToolsRED.git
synced 2025-10-31 06:41:18 -04:00
マスタエディタ:提出書類の出力フォルダを選択するときのデフォルトを前に選択したフォルダにした。(これまではデスクトップ固定。)
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@104 7061adef-622a-194b-ae81-725974e89856
This commit is contained in:
parent
71b8b57b20
commit
e748eecd79
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -333,6 +333,19 @@ System::String^ Form1::saveDirDlg( System::String ^msgJ, System::String ^msgE )
|
|||||||
System::String ^dir;
|
System::String ^dir;
|
||||||
System::Windows::Forms::FolderBrowserDialog ^dlg = gcnew (System::Windows::Forms::FolderBrowserDialog);
|
System::Windows::Forms::FolderBrowserDialog ^dlg = gcnew (System::Windows::Forms::FolderBrowserDialog);
|
||||||
|
|
||||||
|
// デフォルトのフォルダを前に選択したフォルダにする
|
||||||
|
dlg->RootFolder = System::Environment::SpecialFolder::Desktop;
|
||||||
|
if( System::String::IsNullOrEmpty( this->prevDir ) || !System::IO::Directory::Exists( this->prevDir ) )
|
||||||
|
{
|
||||||
|
dlg->SelectedPath = System::Environment::GetFolderPath( System::Environment::SpecialFolder::Desktop );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dlg->SelectedPath = this->prevDir;
|
||||||
|
}
|
||||||
|
dlg->ShowNewFolderButton = true;
|
||||||
|
|
||||||
|
// ダイアログの上部に出るメッセージ
|
||||||
if( this->isEnglish() && msgE )
|
if( this->isEnglish() && msgE )
|
||||||
{
|
{
|
||||||
dlg->Description = msgE;
|
dlg->Description = msgE;
|
||||||
@ -355,6 +368,7 @@ System::String^ Form1::saveDirDlg( System::String ^msgJ, System::String ^msgE )
|
|||||||
{
|
{
|
||||||
dir = System::String::Copy(dlg->SelectedPath);
|
dir = System::String::Copy(dlg->SelectedPath);
|
||||||
}
|
}
|
||||||
|
this->prevDir = dir; // 選択したフォルダを次のフォルダにする
|
||||||
return dir;
|
return dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user